<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, I had a thread back in October around setting up Openswan with Android using L2TP and IPSEC.<BR>
&nbsp;<BR>
I've since got the IPSec VPN conntection fully working between my Android phone and Ubuntu box, with the exception that once the VPN is connected I seem to lose internet access on the Android device. I am looking to tunnel the Android internet access through the VPN and Ubunutu box to the internet, securing my internet sessions when I am on public wi-fi.<BR>
&nbsp;<BR>
I suspect that I have an issue with my routing / NAT traversal which is disrupting the internet queries from my Android phone. Can someone advise how I can diagnose the issue?<BR>
&nbsp;<BR>
The Android device is not rooted so using a Shell is impossible, hence tracing my network traffic from the handset has proven difficult. There may be something obviously wrong in my ipsec config files:<BR>
&nbsp;<BR>
Setup<BR>
====<BR>
Ubuntu 10.04<BR>Openswan 2.6.28<BR>xl2tpd 1.2.7<BR>Google Nexus One with Android 2.2.1 using an IPsec PSK tunnel and the <BR>l2tp secret not enabled.<BR><BR><BR>
&nbsp;<BR>
###############################################################################<BR>/etc/ipsec.conf<BR>###############################################################################<BR># /etc/ipsec.conf - Openswan IPsec configuration file<BR># RCSID $Id: ipsec.conf.in,v 1.16 2005/07/26 12:29:45 ken Exp $<BR><BR># This file:&nbsp; /usr/share/doc/openswan/ipsec.conf-sample<BR>#<BR># Manual:&nbsp;&nbsp;&nbsp;&nbsp; ipsec.conf.5<BR><BR>version 2.0&nbsp;&nbsp;&nbsp;&nbsp; # conforms to second version of ipsec.conf specification<BR><BR># basic configuration<BR>config setup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nat_traversal=yes<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oe=off<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protostack=netkey<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nhelpers=0<BR><BR>conn L2TP<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; authby=secret<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auto=add<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pfs=no<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=transport<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rekey=no<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left=192.168.1.100<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftnexthop=192.168.1.1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leftprotoport=17/1701<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; right=%any<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightsubnet=vhost:%no,%priv<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightprotoport=17/1701<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forceencaps=yes<BR><BR><BR>###############################################################################<BR>/etc/xl2tpd/xl2tpd.conf<BR>###############################################################################<BR>[global]<BR>ipsec saref = no<BR>auth file = /etc/ppp/chap-secrets<BR>port = 1701<BR>debug tunnel = yes<BR>debug avp = yes<BR>debug packet = yes<BR>debug network = yes<BR>debug state = yes<BR><BR>[lns default]<BR>ip range = 192.168.1.51-192.168.1.55<BR>local ip = 192.168.1.50<BR>require chap = yes<BR>refuse pap = yes<BR>require authentication = yes<BR>name = Zebedee<BR>ppp debug = yes<BR>pppoptfile = /etc/ppp/options.xl2tpd<BR>length bit = yes<BR><BR><BR>###############################################################################<BR>/etc/ppp/chap-secrets<BR>###############################################################################<BR># Secrets for authentication using CHAP<BR># client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server&nbsp; secret&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IP addresses<BR>*&nbsp; *&nbsp; "testpass"&nbsp; *<BR><BR><BR>###############################################################################<BR>/etc/ppp/options.xl2tpd<BR>###############################################################################<BR>ipcp-accept-local<BR>ipcp-accept-remote<BR>noccp<BR>auth<BR>#crtscts<BR>idle 1800<BR>mtu 1410<BR>mru 1410<BR>nodefaultroute<BR>debug<BR>lock<BR>proxyarp<BR>connect-delay 5000<BR>ms-dns 192.168.1.1<BR><BR><BR>                                               </body>
</html>