<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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:72.0pt 72.0pt 72.0pt 72.0pt;}
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=EN-GB link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal>Hi all,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ve spent quite a bit of time trying to get to the
root of the problem I have with my Openswan setup, but can’t seem to find
useful answers anywhere, so maybe someone on this list can point me in the
right direction.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>My setup:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>CentOS 5.5 server with Openswan 2.6.21, with a direct
Internet connection, no firewall currently installed, IP address replaced with “my.ip.address”
in log and config file examples<o:p></o:p></p>
<p class=MsoNormal>Windows 7 client on a NATed network<o:p></o:p></p>
<p class=MsoNormal>xl2tpd installed (but the problem seems to appear before I
even get to the l2tp stage)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The problem:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>When trying to connect from my Windows client (internal
network IP 10.0.0.110), I see the following in /var/log/secure and the connection
fails:<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: ignoring Vendor ID payload [MS NT5 ISAKMPOAKLEY 00000008]<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: received Vendor ID payload [RFC 3947] method set to=109<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: received Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n]
meth=106, but already using meth<o:p></o:p></p>
<p class=MsoNormal>od 109<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: ignoring Vendor ID payload [FRAGMENTATION]<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: ignoring Vendor ID payload [MS-Negotiation Discovery
Capable]<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: ignoring Vendor ID payload [Vid-Initial-Contact]<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: ignoring Vendor ID payload [IKE CGA version 1]<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: responding to Main Mode from
unknown peer 79.205.118.89<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: OAKLEY_GROUP 20 not
supported. Attribute OAKLEY_GROUP_DESCRIPTION<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: OAKLEY_GROUP 19 not
supported. Attribute OAKLEY_GROUP_DESCRIPTION<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: transition from state
STATE_MAIN_R0 to state STATE_MAIN_R1<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: STATE_MAIN_R1: sent MR1,
expecting MI2<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: NAT-Traversal: Result using RFC
3947 (NAT-Traversal): peer is NATed<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: pluto_do_crypto: helper (-1) is exiting<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: packet from
79.205.118.89:500: pluto_do_crypto: helper (-1) is exiting<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]: "L2TP-PSK-NAT"[1]
79.205.118.89 #1: transition from state STATE_MAIN_R1 to state STATE_MAIN_R2<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:45 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: STATE_MAIN_R2: sent MR2,
expecting MI3<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: Main mode peer ID is
ID_IPV4_ADDR: '10.0.0.110'<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[1] 79.205.118.89 #1: switched from
"L2TP-PSK-NAT" to "L2TP-PSK-NAT"<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: deleting connection
"L2TP-PSK-NAT" instance with peer 79.205.118.89 {isakmp=#0/ipsec=#0}<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: transition from state
STATE_MAIN_R2 to state STATE_MAIN_R3<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: new NAT mapping for #1, was
79.205.118.89:500, now 79.205.118.89:4500<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: STATE_MAIN_R3: sent MR3, ISAKMP
SA established {auth=OAKLEY_PRESHARED_KEY cipher=aes_256<o:p></o:p></p>
<p class=MsoNormal> prf=oakley_sha group=modp2048}<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: the peer proposed: my.ip.address/32:17/1701
-> 10.0.0.110/32:17/0<o:p></o:p></p>
<p class=MsoNormal>Aug 6 14:21:46 vpn pluto[5446]:
"L2TP-PSK-NAT"[2] 79.205.118.89 #1: cannot respond to IPsec SA
request because no connection is known for my.ip.address<my.ip.address>[+S=C]:17/1701...79.205.118.89[10.0.0.110,+S=C]:17/1701===10.0.0.110/32<o:p></o:p></p>
<p class=MsoNormal>[…]<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Configuration files:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/etc/ipsec.conf:<o:p></o:p></p>
<p class=MsoNormal># basic configuration<o:p></o:p></p>
<p class=MsoNormal>config setup<o:p></o:p></p>
<p class=MsoNormal> # Debug-logging
controls: "none" for (almost) none, "all" for lots.<o:p></o:p></p>
<p class=MsoNormal> # klipsdebug=none<o:p></o:p></p>
<p class=MsoNormal> #
plutodebug="control parsing"<o:p></o:p></p>
<p class=MsoNormal> # For Red Hat
Enterprise Linux and Fedora, leave protostack=netkey<o:p></o:p></p>
<p class=MsoNormal> protostack=netkey<o:p></o:p></p>
<p class=MsoNormal> nat_traversal=yes<o:p></o:p></p>
<p class=MsoNormal>
virtual_private=%v4:10.0.0.0/8,%v4:172.16.0.0/12,%v4:192.168.0.0/16,%v4:!10.0.1.0/24<o:p></o:p></p>
<p class=MsoNormal> oe=off<o:p></o:p></p>
<p class=MsoNormal> # Enable this if
you see "failed to find any available worker"<o:p></o:p></p>
<p class=MsoNormal> nhelpers=0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>#You may put your configuration (.conf) file in the
"/etc/ipsec.d/" and uncomment this.<o:p></o:p></p>
<p class=MsoNormal>include /etc/ipsec.d/*.conf<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>/etc/ipsec.d/l2tp-psk.conf<o:p></o:p></p>
<p class=MsoNormal>conn L2TP-PSK-NAT<o:p></o:p></p>
<p class=MsoNormal>
rightsubnet=vhost:%no,%priv<o:p></o:p></p>
<p class=MsoNormal>
also=L2TP-PSK-noNAT<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>conn L2TP-PSK-noNAT<o:p></o:p></p>
<p class=MsoNormal> authby=secret<o:p></o:p></p>
<p class=MsoNormal> pfs=no<o:p></o:p></p>
<p class=MsoNormal> auto=add<o:p></o:p></p>
<p class=MsoNormal> keyingtries=3<o:p></o:p></p>
<p class=MsoNormal> rekey=no<o:p></o:p></p>
<p class=MsoNormal> ikelifetime=8h<o:p></o:p></p>
<p class=MsoNormal> keylife=1h<o:p></o:p></p>
<p class=MsoNormal> type=transport<o:p></o:p></p>
<p class=MsoNormal> left=my.ip.address<o:p></o:p></p>
<p class=MsoNormal> leftnexthop=my.next.ip.address<o:p></o:p></p>
<p class=MsoNormal>
leftprotoport=17/1701<o:p></o:p></p>
<p class=MsoNormal> right=%any<o:p></o:p></p>
<p class=MsoNormal>
rightprotoport=17/0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any help pointing me in the right direction would be very
much appreciated <span style='font-family:Wingdings'>J</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Best regards,<o:p></o:p></p>
<p class=MsoNormal>Holger<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>