I am new to both Ubuntu and Strongswan. I have worked through this tutorial three times with the same result, unable to connect from Windows 10 or iOS.
Below are the log entries when attempting to connect (x.x.x.x is the server IP, y.y.y.y is the client IP). Is there another troubleshooting tool I can use to figure out why the connection is not being established?
Aug 21 14:59:21 KorberVPN charon: 11[NET] received packet: from y.y.y.y[500] to x.x.x.x[500] (1104 bytes) Aug 21 14:59:21 KorberVPN charon: 11[ENC] parsed IKE_SA_INIT request 0 [ SA KE No N(FRAG_SUP) N(NATD_S_IP) N(NATD_D_IP) V V V V ] Aug 21 14:59:21 KorberVPN charon: 11[IKE] received MS NT5 ISAKMPOAKLEY v9 vendor ID Aug 21 14:59:21 KorberVPN charon: 11[IKE] received MS-Negotiation Discovery Capable vendor ID Aug 21 14:59:21 KorberVPN charon: 11[IKE] received Vid-Initial-Contact vendor ID Aug 21 14:59:21 KorberVPN charon: 11[ENC] received unknown vendor ID: 01:52:8b:bb:c0:06:96:12:18:49:ab:9a:1c:5b:2a:51:00:00:00:02 Aug 21 14:59:21 KorberVPN charon: 11[IKE] y.y.y.y is initiating an IKE_SA Aug 21 14:59:21 KorberVPN charon: 11[IKE] remote host is behind NAT Aug 21 14:59:21 KorberVPN charon: 11[ENC] generating IKE_SA_INIT response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(FRAG_SUP) N(CHDLESS_SUP) N(MULT_AUTH) ] Aug 21 14:59:21 KorberVPN charon: 11[NET] sending packet: from x.x.x.x[500] to y.y.y.y[500] (328 bytes) Aug 21 14:59:26 KorberVPN charon: 12[NET] received packet: from y.y.y.y[500] to x.x.x.x[500] (408 bytes) Aug 21 14:59:26 KorberVPN charon: 12[ENC] parsed ID_PROT request 0 [ SA V V V V V V V V ] Aug 21 14:59:26 KorberVPN charon: 12[IKE] no IKE config found for x.x.x.x…y.y.y.y, sending NO_PROPOSAL_CHOSEN Aug 21 14:59:26 KorberVPN charon: 12[ENC] generating INFORMATIONAL_V1 request 3369216153 [ N(NO_PROP) ] Aug 21 14:59:26 KorberVPN charon: 12[NET] sending packet: from x.x.x.x[500] to y.y.y.y[500] (40 bytes) Aug 21 14:59:27 KorberVPN charon: 13[NET] received packet: from y.y.y.y[500] to x.x.x.x[500] (408 bytes) Aug 21 14:59:27 KorberVPN charon: 13[ENC] parsed ID_PROT request 0 [ SA V V V V V V V V ] Aug 21 14:59:27 KorberVPN charon: 13[IKE] no IKE config found for x.x.x.x…y.y.y.y, sending NO_PROPOSAL_CHOSEN Aug 21 14:59:27 KorberVPN charon: 13[ENC] generating INFORMATIONAL_V1 request 727456103 [ N(NO_PROP) ] Aug 21 14:59:27 KorberVPN charon: 13[NET] sending packet: from x.x.x.x[500] to y.y.y.y[500] (40 bytes) Aug 21 14:59:28 KorberVPN charon: 14[NET] received packet: from y.y.y.y[500] to x.x.x.x[500] (408 bytes) Aug 21 14:59:28 KorberVPN charon: 14[ENC] parsed ID_PROT request 0 [ SA V V V V V V V V ] Aug 21 14:59:28 KorberVPN charon: 14[IKE] no IKE config found for x.x.x.x…y.y.y.y, sending NO_PROPOSAL_CHOSEN Aug 21 14:59:28 KorberVPN charon: 14[ENC] generating INFORMATIONAL_V1 request 589088403 [ N(NO_PROP) ] Aug 21 14:59:28 KorberVPN charon: 14[NET] sending packet: from x.x.x.x[500] to y.y.y.y[500] (40 bytes) Aug 21 14:59:31 KorberVPN charon: 15[NET] received packet: from y.y.y.y[500] to x.x.x.x[500] (408 bytes) Aug 21 14:59:31 KorberVPN charon: 15[ENC] parsed ID_PROT request 0 [ SA V V V V V V V V ] Aug 21 14:59:31 KorberVPN charon: 15[IKE] no IKE config found for x.x.x.x…y.y.y.y, sending NO_PROPOSAL_CHOSEN Aug 21 14:59:31 KorberVPN charon: 15[ENC] generating INFORMATIONAL_V1 request 1818908561 [ N(NO_PROP) ] Aug 21 14:59:31 KorberVPN charon: 15[NET] sending packet: from x.x.x.x[500] to y.y.y.y[500] (40 bytes) Aug 21 14:59:51 KorberVPN charon: 16[JOB] deleting half open IKE_SA with y.y.y.y after timeout
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
This question was answered by @erikschindeldecker:
That was it - I was missing the : and space before RSA in the ipsec.secrets - thought it was representing the line prompt. Thank you again for your patience and assistance.
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.