I have been unable to get Sonicwall with XAUTH and Openswan to play nicely together and don't know the root cause. I haven't had the time to setup some alternative VPN boxes to see if XAUTH is broken globally with my Openswan installation or just with Sonicwall. I know that Global VPN clients can use it. But since using XAUTH isn't required for our setup (since I make those rules), I just turned it off.
<br><br>Another thing -- if you are requiring authenticating clients to use DHCP via the Sonicwall, you will have issues. You can allow both static and DHCP to be used.<br><br>Here&#39;s my current settings:<br><br>version 
2.0<br><br>config setup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plutodebug=&quot;control parsing natt private&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nat_traversal=yes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nhelpers=0<br><br><br>conn sonicwall<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=tunnel<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left=%defaultroute<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftnexthop=&lt;my home gateway IP&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftsubnet=&lt;my home subnet&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftid=&lt;the id I used to associate the shared secret in my ipsec.secrets file&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; right=&lt;my Sonicwall&#39;s public IP&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightsubnet=&lt;the subnet on the other side of the Sonicwall&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightid=&lt;my Sonicwall&#39;s unique ID prefixed by @&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyingtries=0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pfs=no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; aggrmode=no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto=add<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auth=esp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ike=aes256-md5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; esp=aes256-md5
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; authby=secret<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xauth=no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keyexchange=ike<br><br>include /etc/ipsec.d/examples/no_oe.conf<br><br>Here&#39;s the posting I wrote before. Ignore the part about Raccoon. It broke Sonicwall on my current configuration (Ubuntu 
7.04 Feisty):<br><br><a href="http://lists.openswan.org/pipermail/users/2007-March/012092.html">http://lists.openswan.org/pipermail/users/2007-March/012092.html</a><br><br>If your Sonicwall must have XAUTH, then you will have to solve that problem or develop a workaround. Depending on how much leverage you have on your setup, you could in theory have an Openswan box configured on one of your unused public IP addresses and route that to your local subnet. You would be bypassing your border firewall that way, but it is doable.
<br><br><div><span class="gmail_quote">On 6/15/07, <b class="gmail_sendername">Rick Knight</b> &lt;<a href="mailto:rick_knight@rlknight.com">rick_knight@rlknight.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Aaron, thanks for your reply.<br><br>I need to use Xauth for authentication, it&#39;s in the policy and I can&#39;t<br>change that. Also, my&nbsp;&nbsp;SonicWall is configured for 3DES and SHA1 so<br>that&#39;s what I have in my ipsec.conf
. One thing I&#39;m wondering about<br>though is the name of the VPN Policy. Do I need to match this in my<br>ipsec.conf file?&nbsp;&nbsp;Whoever set up the SonicWall&nbsp;&nbsp;and configured the VPN<br>policies, put spaces in the name. Instead of &quot;GroupVPN&quot;, we have &quot;WAN
<br>GroupVPN&quot;. I have not been able to get my secrets file to work with the<br>later.Could that be causing problems.<br><br>Also, where can I find your article?<br><br>Thanks,<br>Rick Knight<br><br>Aaron Kincer wrote:
<br>&gt; Make sure your encryption settings on your Sonicwall match what you are<br>&gt; using here. Also, make sure you have turned of XAUTH for your<br>&gt; GroupVPN. Have<br>&gt; you read my posting on how I got it working for Sonicwall?
<br>&gt;<br>&gt; On 6/15/07, Rick Knight &lt;<a href="mailto:rick_knight@rlknight.com">rick_knight@rlknight.com</a>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; I&#39;m trying to establish a connection to a SonicWall 3060 Enhanced<br>
&gt;&gt; firewall using Openswan 2.3. I have several documents describing how to<br>&gt;&gt; do this, but for some reason I can&#39;t make it work. Can someone take a<br>&gt;&gt; look at my settings and tell me what I&#39;ve missed or gotten wrong? Below
<br>&gt;&gt; is my ipsec.conf and several lines of output generated when I try to<br>&gt;&gt; connect.<br>&gt;&gt;<br>&gt;&gt; My ipsec.conf<br>&gt;&gt; # /etc/ipsec.conf - Openswan IPsec configuration file<br>&gt;&gt; # RCSID $Id: 
<a href="http://ipsec.conf.in">ipsec.conf.in</a>,v <a href="http://1.15.2.2">1.15.2.2</a> 2005/11/14 20:10:27 paul Exp $<br>&gt;&gt;<br>&gt;&gt; # This file:&nbsp;&nbsp;/usr/share/doc/openswan/ipsec.conf-sample<br>&gt;&gt; #<br>&gt;&gt; # Manual:&nbsp;&nbsp;&nbsp;&nbsp; 
ipsec.conf.5<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; version&nbsp;&nbsp;&nbsp;&nbsp;2.0&nbsp;&nbsp;&nbsp;&nbsp;# conforms to second version of ipsec.conf<br>&gt;&gt; specification<br>&gt;&gt;<br>&gt;&gt; # basic configuration<br>&gt;&gt; config setup<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # plutodebug / klipsdebug = &quot;all&quot;, &quot;none&quot; or a combation from below:
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # &quot;raw crypt parsing emitting control klips pfkey natt x509 private&quot;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # eg:<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # plutodebug=&quot;control parsing&quot;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # Only enable klipsdebug=all if you are a developer
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; #<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # NAT-TRAVERSAL support, see README.NAT-Traversal<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; nat_traversal=yes<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # virtual_private=%v4:<a href="http://10.0.0.0/8,%v4:192.168.0.0/16,%4:172.16.0.0/12">
10.0.0.0/8,%v4:192.168.0.0/16,%4:172.16.0.0/12</a><br>&gt;&gt;<br>&gt;&gt; # Add connections here<br>&gt;&gt;<br>&gt;&gt; conn sonicwall<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; type=tunnel<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; left=<a href="http://172.16.88.25">172.16.88.25
</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; leftnexthop=<a href="http://172.16.88.2">172.16.88.2</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; leftsubnet=<a href="http://172.16.88.0/23">172.16.88.0/23</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; leftxauthclient=yes<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; leftid=@localID
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; right=x.x.x.x<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; rightsubnet=<a href="http://192.168.0.0/24">192.168.0.0/24</a><br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; rightxauthserver=yes<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; rightid=@uniqueID<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; keyingtries=0<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; pfs=no
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; aggrmode=no<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; auto=add<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; auth=esp<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; ike=3des-sha1<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; esp=3des-sha1<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; authby=secret<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; #xauth=yes<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; keyexchange=ike
<br>&gt;&gt;<br>&gt;&gt; #Disable Opportunistic Encryption<br>&gt;&gt; #include /etc/ipsec.d/examples/no_oe.conf<br>&gt;&gt;<br>&gt;&gt; My ipsec.secrets contains this...<br>&gt;&gt; @localID @uniqueID : PSK &quot;secret&quot;
<br>&gt;&gt;<br>&gt;&gt; Output of # ipsec auto --up sonicwall<br>&gt;&gt; 104 &quot;sonicwall&quot; #2: STATE_MAIN_I1: initiate<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: ignoring unknown Vendor ID payload<br>&gt;&gt; [5b362bc820f60001]
<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: received Vendor ID payload<br>&gt;&gt; [draft-ietf-ipsec-nat-t-ike-03] method set to=108<br>&gt;&gt; 106 &quot;sonicwall&quot; #2: STATE_MAIN_I2: sent MI2, expecting MR2<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: ignoring unknown Vendor ID payload
<br>&gt;&gt; [404bf439522ca3f6]<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: received Vendor ID payload [XAUTH]<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: received Vendor ID payload [Dead Peer Detection]<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: NAT-Traversal: Result using
<br>&gt;&gt; draft-ietf-ipsec-nat-t-ike-02/03: i am NATed<br>&gt;&gt; 108 &quot;sonicwall&quot; #2: STATE_MAIN_I3: sent MI3, expecting MR3<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: Mode Config message is unacceptable because it is
<br>&gt;&gt; for an incomplete ISAKMP SA (state=STATE_MAIN_I3)<br>&gt;&gt; 010 &quot;sonicwall&quot; #2: STATE_MAIN_I3: retransmission; will wait 20s for<br>&gt;&gt; response<br>&gt;&gt; 004 &quot;sonicwall&quot; #2: STATE_MAIN_I4: ISAKMP SA established
<br>&gt;&gt; {auth=OAKLEY_PRESHARED_KEY cipher=oakley_3des_cbc_192 prf=oakley_sha<br>&gt;&gt; group=modp1024}<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: next payload type of ISAKMP Hash Payload has an<br>&gt;&gt; unknown value: 255
<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: malformed payload in packet<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: next payload type of ISAKMP Hash Payload has an<br>&gt;&gt; unknown value: 255<br>&gt;&gt; 003 &quot;sonicwall&quot; #2: malformed payload in packet
<br>&gt;&gt;<br>&gt;&gt; Can someone please help me out?<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt; Rick Knight<br>&gt;&gt; _______________________________________________<br>&gt;&gt; <a href="mailto:Users@openswan.org">
Users@openswan.org</a><br>&gt;&gt; <a href="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</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;&gt;<br><br>_______________________________________________
<br><a href="mailto:Users@openswan.org">Users@openswan.org</a><br><a href="http://lists.openswan.org/mailman/listinfo/users">http://lists.openswan.org/mailman/listinfo/users</a><br>Building and Integrating Virtual Private Networks with Openswan:
<br><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></blockquote></div><br>