<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I’m trying to configure strongswan for accessing my home network with my Ipad.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I do manage to build up the vpn tunnel within the WLAN with the ipsec.conf below.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US># ipsec.conf - strongSwan IPsec configuration file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US># basic configuration<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>config setup<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> nat_traversal=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> charonstart=no<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> plutostart=yes<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>conn L2TP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> authby=psk<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> keyexchange=ikev1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> pfs=no<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rekey=no<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> type=tunnel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> esp=aes128-sha1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> ike=aes128-sha-modp1024<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> left=192.168.1.250<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> leftprotoport=17/1701<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> right=%any<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rightprotoport=17/%any<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> rightsubnetwithin=0.0.0.0/0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> auto=add<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>As soon as I try to access through the internet (dynamic IP-address via dyndns), I get the following error message “: cannot respond to IPsec SA request because no connection is known for” (see log below):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:43 webfrontend pluto[26687]: "L2TP"[6] 193.247.250.41:397 #5: responding to Main Mode from unknown peer 193.247.250.41:397<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: "L2TP"[6] 193.247.250.41:397 #5: NAT-Traversal: Result using RFC 3947: both are NATed<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: "L2TP"[6] 193.247.250.41:397 #5: ignoring informational payload, type IPSEC_INITIAL_CONTACT<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: "L2TP"[6] 193.247.250.41:397 #5: Peer ID is ID_IPV4_ADDR: '10.165.74.84'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: "L2TP"[7] 193.247.250.41:397 #5: deleting connection "L2TP" instance with peer 193.247.250.41 {isakmp=#0/ipsec=#0}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: | NAT-T: new mapping 193.247.250.41:397/18954)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:44 webfrontend pluto[26687]: "L2TP"[7] 193.247.250.41:18954 #5: sent MR3, ISAKMP SA established<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:45 webfrontend pluto[26687]: "L2TP"[7] 193.247.250.41:18954 #5: cannot respond to IPsec SA request because no connection is known for 86.194.205.27/32===192.168.1.250:4500[192.168.1.250]:17/1701...193.247.250.41:18954[10.165.74.84]:17/%any==={10.165.74.84/32}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:45 webfrontend pluto[26687]: "L2TP"[7] 193.247.250.41:18954 #5: sending encrypted notification INVALID_ID_INFORMATION to 193.247.250.41:18954<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Feb 6 18:45:48 webfrontend pluto[26687]: "L2TP"[7] 193.247.250.41:18954 #5: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x1e7f53a7 (perhaps this is a duplicated packet)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>My config looks the following:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Ipad -> 3G -> MyDomain.dyndns.org -> DIR-855 internet gateway (192.168.1.1) -> VPN-gateway (192.168.1.250) -> LAN / WLAN 192.168.1.0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I tried all sorts of combinations including the NATed Ipad address as parameter “right” (as well as the parameters rightsubnet, rightsubnetwithin) but it doesn’t change anything. I presume I got something fundamentally wrong…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Did anybody manage to get VPN up and running in a similar configuration? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Uli<o:p></o:p></span></p></div></body></html>