<html><body><div id="zimbraEditorContainer" style="font-family: verdana,helvetica,sans-serif; font-size: 10pt; color: #000000" class="2"><div>Hi.<br></div><div>I'm (still) trying to configure a tunnel between a StrongSwan 5.6.2 (Ubuntu 18.04) host and a Fortigate device. I finally came up with a working configuration, but now I'm unable to have srongswan authenticate, I get the infamous <br data-mce-bogus="1"></div><div>May 26 16:05:19 vpn01 charon: 13[IKE] no peer config found</div><div>I tried different formats of selectors but they all fail. I checked the config several times but I cannot find what's wrong.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>My ipsec.secrets:<br data-mce-bogus="1"></div><div>95.1.8.6 %any : PSK "abcde"<br>95.1.8.6 2.3.8.1 : PSK "abcde"<br>95.1.8.6 : PSK "abcde"<br>Stelle : PSK "abcde"<br><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>My ipsec.conf:<br data-mce-bogus="1"></div><div>conn sts-base<br> keyexchange=ikev1<br> fragmentation=yes<br> dpdaction=restart<br> ike=aes256-sha256-modp3072<br> esp=aes256-sha256<br> keyingtries=%forever<br> leftsubnet=172.32.1.0/24<br> lifetime=86400<br> leftauth=psk<br> rightauth=psk<br> righid=Stelle<br> auto=start<br> right=2.3.8.1</div><div><br>conn site-3-1<br> also=sts-base<br> leftsubnet=172.32.1.0/24<br> rightsubnet=192.168.8.0/24<br><br>conn site-3-2<br> also=sts-base<br> leftsubnet=172.32.1.0/24<br> rightsubnet=192.168.9.0/24<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Log:<br data-mce-bogus="1"></div><div>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] remote host is behind NAT<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[CFG] peer config match local: 1 (ID_ANY)<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[CFG] peer config match remote: 1 (ID_ANY)<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[CFG] ike config match: 2076 (95.1.8.6 2.3.8.1 IKEv1)<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[CFG] candidate "sts-base", match: 1/1/2076 (me/other/ike)<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] natd_chunk => 22 bytes @ 0x7ff92cef4ac0<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 0: D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 71 AD 06 01 .Pk....... Hq...<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 16: D9 85 12 64 01 F4 ...d..<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] natd_hash => 32 bytes @ 0x7ff91000c150<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 0: D1 DB AE ED 2E B2 94 77 32 7E 51 CE 9B 0A 49 D5 .......w2~Q...I.<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 16: 11 8F CC 18 33 70 47 FE D0 04 3B 8E EA DF 9E 3D ....3pG...;....=<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] natd_chunk => 22 bytes @ 0x7ff92cef4ac0<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 0: D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 71 AD 06 01 .Pk....... Hq...<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 16: 5F 6E 80 BA 01 F4 _n....<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] natd_hash => 32 bytes @ 0x7ff91000c150<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 0: 27 C0 28 F3 4D E2 DD 93 03 04 E6 98 8A 20 02 3B '.(.M........ .;<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[IKE] 16: BA AC FF 7F C6 23 EC 1E 9F 77 1A 9E D7 DD EB 11 .....#...w......<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[ENC] generating ID_PROT response 0 [ KE No NAT-D NAT-D ]<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[NET] sending packet: from 95.1.8.6[500] to 2.3.8.1[500] (524 bytes)<br>May 26 16:05:19 vpn01 ipsec[1367]: 04[NET] sending packet: from 95.1.8.6[500] to 2.3.8.1[500]<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[MGR] checkin IKE_SA (unnamed)[102]<br>May 26 16:05:19 vpn01 ipsec[1367]: 15[MGR] checkin of IKE_SA successful<br>May 26 16:05:19 vpn01 ipsec[1367]: 03[NET] received packet => 112 bytes @ 0x7ff9326fd440<br>May 26 16:05:19 vpn01 ipsec[1367]: 03[NET] 0: 00 00 00 00 D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 .....Pk....... H<br>May 26 16:05:19 vpn01 ipsec[1367]: 03[NET] 16: 71 AD 06 01 05 10 02 01 00 00 00 00 00 00 00 6C q..............l<br>May 26 16:05:19 vpn01 charon: 03[NET] 0: 00 00 00 00 D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 .....Pk....... H<br>May 26 16:05:19 vpn01 ipsec[1367]: 03[NET] 32: DF 47 5C 43 7A CD 60 FF DB 15 51 27 EA 7B 39 1A .G\Cz.`...Q'.{9.<br>May 26 16:05:19 vpn01 charon: 03[NET] 16: 71 AD 06 01 05 10 02 01 00 00 00 00 00 00 00 6C q..............l<br>May 26 16:05:19 vpn01 charon: 03[NET] 32: DF 47 5C 43 7A CD 60 FF DB 15 51 27 EA 7B 39 1A .G\Cz.`...Q'.{9.<br>May 26 16:05:19 vpn01 charon: 03[NET] 48: D2 4E D8 56 36 6B 3C B6 4D 48 4A 65 B1 8B 90 B9 .N.V6k<.MHJe....<br>May 26 16:05:19 vpn01 charon: 03[NET] 64: E9 67 7F E3 0F 5B 38 43 41 6B DA 67 FD 2C 69 4F .g...[8CAk.g.,iO<br>May 26 16:05:19 vpn01 charon: 03[NET] 80: 0D 36 D5 65 67 E5 CE D7 6C D4 44 D3 94 EF 55 CC .6.eg...l.D...U.<br>May 26 16:05:19 vpn01 charon: 03[NET] 96: 4F 84 82 E2 05 A0 DD E9 9F FB F2 B5 DE 54 E1 77 O............T.w<br>May 26 16:05:19 vpn01 charon: 03[NET] received packet: from 2.3.8.1[4500] to 95.1.8.6[4500]<br>May 26 16:05:19 vpn01 charon: 03[NET] waiting for data on sockets<br>May 26 16:05:19 vpn01 charon: 13[MGR] checkout IKEv1 SA by message with SPIs d6506bf785fdb6f3_i b1f8204871ad0601_r<br>May 26 16:05:19 vpn01 charon: 13[MGR] IKE_SA (unnamed)[102] successfully checked out<br>May 26 16:05:19 vpn01 charon: 13[NET] received packet: from 2.3.8.1[4500] to 95.1.8.6[4500] (108 bytes)<br>May 26 16:05:19 vpn01 charon: 13[ENC] parsed ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]<br>May 26 16:05:19 vpn01 charon: 13[CFG] looking for pre-shared key peer configs matching 95.1.8.6...2.3.8.1[Stelle]<br>May 26 16:05:19 vpn01 charon: 13[CFG] peer config match local: 1 (ID_ANY)<br>May 26 16:05:19 vpn01 charon: 13[CFG] peer config match remote: 0 (ID_FQDN -> 53:74:65:6c:6c:65)<br>May 26 16:05:19 vpn01 charon: 13[CFG] ike config match: 2076 (95.1.8.6 2.3.8.1 IKEv1)<br>May 26 16:05:19 vpn01 charon: 13[IKE] no peer config found<br>May 26 16:05:19 vpn01 charon: 13[IKE] queueing INFORMATIONAL task<br>May 26 16:05:19 vpn01 charon: 13[IKE] activating new tasks<br>May 26 16:05:19 vpn01 charon: 13[IKE] activating INFORMATIONAL task<br>May 26 16:05:19 vpn01 charon: 13[IKE] Hash => 32 bytes @ 0x7ff910017940<br>May 26 16:05:19 vpn01 charon: 13[IKE] 0: D0 BD F8 53 09 8C 69 43 BF 35 35 59 D3 72 08 B7 ...S..iC.55Y.r..<br>May 26 16:05:19 vpn01 charon: 13[IKE] 16: BF 25 1F 4A 79 65 78 55 F5 07 30 F5 E4 8F 7A 7D .%.JyexU..0...z}<br>May 26 16:05:19 vpn01 charon: 13[ENC] generating INFORMATIONAL_V1 request 3029794389 [ HASH N(AUTH_FAILED) ]<br>May 26 16:05:19 vpn01 charon: 13[NET] sending packet: from 95.1.8.6[4500] to 2.3.8.1[4500] (108 bytes)<br>May 26 16:05:19 vpn01 charon: 13[MGR] checkin and destroy IKE_SA (unnamed)[102]<br>May 26 16:05:19 vpn01 charon: 13[IKE] IKE_SA (unnamed)[102] state change: CONNECTING => DESTROYING<br>May 26 16:05:19 vpn01 charon: 13[MGR] checkin and destroy of IKE_SA successful<br>May 26 16:05:19 vpn01 charon: 04[NET] sending packet: from 95.1.8.6[4500] to 2.3.8.1[4500]<br>May 26 16:05:22 vpn01 charon: 03[NET] received packet => 112 bytes @ 0x7ff9326fd440<br>May 26 16:05:22 vpn01 charon: 03[NET] 0: 00 00 00 00 D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 .....Pk....... H<br>May 26 16:05:22 vpn01 charon: 03[NET] 16: 71 AD 06 01 05 10 02 01 00 00 00 00 00 00 00 6C q..............l<br>May 26 16:05:22 vpn01 charon: 03[NET] 32: DF 47 5C 43 7A CD 60 FF DB 15 51 27 EA 7B 39 1A .G\Cz.`...Q'.{9.<br>May 26 16:05:22 vpn01 charon: 03[NET] 48: D2 4E D8 56 36 6B 3C B6 4D 48 4A 65 B1 8B 90 B9 .N.V6k<.MHJe....<br>May 26 16:05:22 vpn01 charon: 03[NET] 64: E9 67 7F E3 0F 5B 38 43 41 6B DA 67 FD 2C 69 4F .g...[8CAk.g.,iO<br>May 26 16:05:22 vpn01 charon: 03[NET] 80: 0D 36 D5 65 67 E5 CE D7 6C D4 44 D3 94 EF 55 CC .6.eg...l.D...U.<br>May 26 16:05:22 vpn01 charon: 03[NET] 96: 4F 84 82 E2 05 A0 DD E9 9F FB F2 B5 DE 54 E1 77 O............T.w<br>May 26 16:05:22 vpn01 charon: 03[NET] received packet: from 2.3.8.1[4500] to 95.1.8.6[4500]<br>May 26 16:05:22 vpn01 charon: 03[NET] waiting for data on sockets<br>May 26 16:05:22 vpn01 charon: 12[MGR] checkout IKEv1 SA by message with SPIs d6506bf785fdb6f3_i b1f8204871ad0601_r<br>May 26 16:05:22 vpn01 charon: 12[MGR] IKE_SA checkout not successful<br>May 26 16:05:28 vpn01 charon: 03[NET] received packet => 112 bytes @ 0x7ff9326fd440<br>May 26 16:05:28 vpn01 charon: 03[NET] 0: 00 00 00 00 D6 50 6B F7 85 FD B6 F3 B1 F8 20 48 .....Pk....... H<br>May 26 16:05:28 vpn01 charon: 03[NET] 16: 71 AD 06 01 05 10 02 01 00 00 00 00 00 00 00 6C q..............l<br>May 26 16:05:28 vpn01 charon: 03[NET] 32: DF 47 5C 43 7A CD 60 FF DB 15 51 27 EA 7B 39 1A .G\Cz.`...Q'.{9.<br>May 26 16:05:28 vpn01 charon: 03[NET] 48: D2 4E D8 56 36 6B 3C B6 4D 48 4A 65 B1 8B 90 B9 .N.V6k<.MHJe....<br>May 26 16:05:28 vpn01 charon: 03[NET] 64: E9 67 7F E3 0F 5B 38 43 41 6B DA 67 FD 2C 69 4F .g...[8CAk.g.,iO<br>May 26 16:05:28 vpn01 charon: 03[NET] 80: 0D 36 D5 65 67 E5 CE D7 6C D4 44 D3 94 EF 55 CC .6.eg...l.D...U.<br>May 26 16:05:28 vpn01 charon: 03[NET] 96: 4F 84 82 E2 05 A0 DD E9 9F FB F2 B5 DE 54 E1 77 O............T.w<br>May 26 16:05:28 vpn01 charon: 03[NET] received packet: from 2.3.8.1[4500] to 95.1.8.6[4500]<br>May 26 16:05:28 vpn01 charon: 03[NET] waiting for data on sockets<br>May 26 16:05:28 vpn01 charon: 12[MGR] checkout IKEv1 SA by message with SPIs d6506bf785fdb6f3_i b1f8204871ad0601_r<br>May 26 16:05:28 vpn01 charon: 12[MGR] IKE_SA checkout not successful<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><div>thanks<br data-mce-bogus="1"></div><div data-marker="__SIG_POST__">-- <br></div><div><div>Lorenzo Milesi - lorenzo.milesi@yetopen.com<br>CTO @ YetOpen Srl<br></div><div><br></div></div></div>
<br><div>
<a href="https://www.yetopen.com"><img src="https://logo.ufficyo.com/Firma20201.01.04.png" alt="YetOpen" /></a>
<br />
<em><font color="#77bb41">Think green</font> - Non stampare questa e-mail se non necessario / Don't print this email unless necessary</em><br />
<br />
<font style="font-size: 9px; color: rgb(162, 162, 162);">
-------- D.Lgs. 196/2003 e GDPR 679/2016 --------<br />
Tutte le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario.
Tutte le informazioni ivi contenute, compresi eventuali allegati, sono da ritenere confidenziali e riservate secondo i termini
del vigente D.Lgs. 196/2003 in materia di privacy e del Regolamento europeo 679/2016 - GDPR - e quindi ne e' proibita l'utilizzazione ulteriore non autorizzata.
Nel caso in cui questo messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo senza copiarlo, stamparlo, a non inoltrarlo a terzi e ad avvertirci non appena possibile.
Grazie.<br />
<br />
Confidentiality notice: this email message including any attachment is for the sole use of the intended recipient and may contain confidential and privileged information;
pursuant to Legislative Decree 196/2003 and the European General Data Protection Regulation 679/2016 - GDPR - any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recepient please delete this message without copying, printing or forwarding it to others, and alert us as soon as possible.
Thank you.<br />
</font>
</div>
<br></body></html>