<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Openswan Users] Simplest ipsec config with PSK insists that I have no connection authorized with policy=PSK</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Did you check your IPsec.SEcrets file?<BR>
it should be<BR>
192.170.1.4 %any : PSK &quot;&quot;<BR>
<BR>
or something to that effect.<BR>
<BR>
Randy<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: users-bounces@openswan.org on behalf of JP CR<BR>
Sent: Fri 12/31/2010 6:34 PM<BR>
To: wgillespie+openswan@es2eng.com; users@openswan.org<BR>
Subject: Re: [Openswan Users] Simplest ipsec config with PSK insists that I have no connection authorized with policy=PSK<BR>
<BR>
Same result. Same error.<BR>
I can comment out the rest of the connections and i still get the same error.<BR>
<BR>
In fact I can comment out the entire l2tp-psk.conf include in ipsec.conf and I still get the same error. Not sure what this means..<BR>
<BR>
<BR>
&gt; Date: Fri, 31 Dec 2010 19:05:54 -0700<BR>
&gt; From: wgillespie+openswan@es2eng.com<BR>
&gt; To: jprollerskate@hotmail.com<BR>
&gt; CC: users@openswan.org<BR>
&gt; Subject: Re: [Openswan Users] Simplest ipsec config with PSK insists that I have no connection authorized with policy=PSK<BR>
&gt;<BR>
&gt; As a quick test, what happens if you comment out your<BR>
&gt; &quot;passthrough-for-non-l2tp&quot; connection? Is it able to find a connection<BR>
&gt; to use then?<BR>
&gt;<BR>
&gt; On 12/31/2010 05:58 PM, JP CR wrote:<BR>
&gt; &gt; Hello,<BR>
&gt; &gt;<BR>
&gt; &gt; Making a primitive test.<BR>
&gt; &gt;<BR>
&gt; &gt; I have a home LAN, a two machines one WinXP and other Ubuntu 10.1 v<BR>
&gt; &gt; 1:2.6.23+dfsg-1ubuntu1 kernel: 2.6.32-17-generic<BR>
&gt; &gt; WinXP IP is 192.170.1.3<BR>
&gt; &gt; Ubuntu: 192.170.1.4<BR>
&gt; &gt; Gateway for both is 192.170.1.1<BR>
&gt; &gt; No firewalls installed on either machines.<BR>
&gt; &gt;<BR>
&gt; &gt; a.) iam following guidance of:<BR>
&gt; &gt; <A HREF="http://rootmanager.com/ubuntu-ipsec-l2tp-windows-domain-auth/setting-up-openswan-xl2tpd-with-native-windows-clients.html">http://rootmanager.com/ubuntu-ipsec-l2tp-windows-domain-auth/setting-up-openswan-xl2tpd-with-native-windows-clients.html</A><BR>
&gt; &gt; b.) This is my ipsec.conf (comments removed):<BR>
&gt; &gt; version 2.0 # conforms to second version of ipsec.conf specification<BR>
&gt; &gt;<BR>
&gt; &gt; # basic configuration<BR>
&gt; &gt; config setup<BR>
&gt; &gt; nat_traversal=yes<BR>
&gt; &gt; virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12<BR>
&gt; &gt; oe=off<BR>
&gt; &gt; protostack=netkey<BR>
&gt; &gt;<BR>
&gt; &gt; include /etc/ipsec.d/l2tp-psk.conf<BR>
&gt; &gt;<BR>
&gt; &gt; c.) This is my /etc/ipsec.d/l2tp-psk.conf<BR>
&gt; &gt;<BR>
&gt; &gt; conn L2TP-PSK-NAT<BR>
&gt; &gt; rightsubnet=vhost:%priv<BR>
&gt; &gt; also=L2TP-PSK-noNAT<BR>
&gt; &gt;<BR>
&gt; &gt; conn L2TP-PSK-noNAT<BR>
&gt; &gt; authby=secret<BR>
&gt; &gt; pfs=no<BR>
&gt; &gt; auto=add<BR>
&gt; &gt; keyingtries=3<BR>
&gt; &gt; # we cannot rekey for %any, let client rekey<BR>
&gt; &gt; rekey=no<BR>
&gt; &gt; # Set ikelifetime and keylife to same defaults windows has<BR>
&gt; &gt; ikelifetime=8h<BR>
&gt; &gt; keylife=1h<BR>
&gt; &gt; # l2tp-over-ipsec is transport mode<BR>
&gt; &gt; type=transport<BR>
&gt; &gt; left=192.170.1.1<BR>
&gt; &gt; leftprotoport=17/1701<BR>
&gt; &gt; right=%any<BR>
&gt; &gt; rightprotoport=17/0<BR>
&gt; &gt;<BR>
&gt; &gt; conn passthrough-for-non-l2tp<BR>
&gt; &gt; type=passthrough<BR>
&gt; &gt; left=192.170.1.4<BR>
&gt; &gt; leftnexthop=192.170.1.1<BR>
&gt; &gt; right=0.0.0.0/24<BR>
&gt; &gt; rightsubnet=0.0.0.0/0<BR>
&gt; &gt; auto=route<BR>
&gt; &gt;<BR>
&gt; &gt; d.) THis is my /etc/ipsec.secrets<BR>
&gt; &gt;<BR>
&gt; &gt; 192.170.1.4 %any: PSK &quot;password&quot;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt; Iam using the native WinXP VPN connection to test, i made sure that i<BR>
&gt; &gt; set the preshared key and told it to use a PSK, however i keep getting<BR>
&gt; &gt; that error: pluto[7752]: packet from 192.170.1.3:500: initial Main Mode<BR>
&gt; &gt; message received on 192.170.1.4:500 but no connection has been<BR>
&gt; &gt; authorized with policy=PSK I expect to see: |STATE_QUICK_R2: IPsec SA<BR>
&gt; &gt; established|<BR>
&gt; &gt;<BR>
&gt; &gt; I tried searching google, made sure right is %any... and tried lots of<BR>
&gt; &gt; things but no joy.<BR>
&gt; &gt;<BR>
&gt; &gt; Thanks<BR>
&gt; &gt; Gunther<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt; &gt; _______________________________________________<BR>
&gt; &gt; Users@openswan.org<BR>
&gt; &gt; <A HREF="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</A><BR>
&gt; &gt; Micropayments: <A HREF="https://flattr.com/thing/38387/IPsec-for-Linux-made-easy">https://flattr.com/thing/38387/IPsec-for-Linux-made-easy</A><BR>
&gt; &gt; Building and Integrating Virtual Private Networks with Openswan:<BR>
&gt; &gt; <A HREF="http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155">http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155</A><BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>