<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3">My name is Stefanus. I am very new with Linux. This is my first installation</font><font class="Apple-style-span" face="'times new roman', 'new york', times, serif" size="3">. I have installed Linux Fedora 16 then installed openswan-2.6.36-1.fc16 (64 bit) and xl2tpd-1.3.1-1.fc16 (64 bit). Trying to follow some tutorials on the web to set VPN server using openswan.&nbsp;</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">The PC is behind Router Firewall (ip 192.168.1.1)<br></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">The PC ip address is 192.168.1.9</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I have set port forwarding for 1701 to the PC</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I use iphone to connect to the VPN server using its 3g connection so it is using separated network from my LAN</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I can connect to the VPN server. The issue happened if I disconnect the connection and try to reconnect. My iphone show error that the server is not responding.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I can reconnect back again if I restart the ipsec service.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;
 "><br></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">I have tried to google. I only found similar issue in this url&nbsp;</font><a href="http://lists.openswan.org/pipermail/users/2010-August/019213.html">http://lists.openswan.org/pipermail/users/2010-August/019213.html</a></div><div>but i can not find the solution.</div><div>Any help will be very appreciated.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thanks in advance.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Stefanus</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new
 roman', 'new york', times, serif; font-size: 12pt; ">here is my setting:<br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">/etc/ipsec.conf</span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">-----------</span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span><span class="Apple-style-span" style="color: rgb(34, 34, 34);
 font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">nat_traversal=yes</span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12</span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">oe=off</span><span class="Apple-style-span" style="color: rgb(34, 34,
 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">protostack=netkey</span><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">conn
 L2TP-PSK<br>authby=secret<br>pfs=no<br>auto=add<br>keyingtries=3<br>rekey=no<br>ikelifetime=8h<br>keylife=1h<br>type=transport<br>left=192.168.1.1<br>leftprotoport=17/1701<br>right=%any<br>rightprotoport=17/%any<br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">rightsubnet=vhost:%priv<br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span></div><div><font class="Apple-style-span" color="#222222" face="Georgia, Utopia, 'Palatino Linotype', Palatino, serif"><span class="Apple-style-span" style="font-size: 15px;
 line-height: 21px;">/etc/xl2tpd/xl2tpd.conf<br></span></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; ">------------<br>[global]<br>ipsec saref = yes<br>[lns default]<br>ip range = 192.168.1.200-192.168.1.210<br>local ip = 192.168.1.9<br>refuse chap = yes<br>refuse pap = yes<br>require authentication = yes<br>ppp debug = yes<br>pppoptfile = /etc/ppp/options.xl2tpd<br>length bit = yes<br></span></div><div><font class="Apple-style-span" color="#222222" face="Georgia, Utopia, 'Palatino Linotype', Palatino, serif"><span class="Apple-style-span" style="font-size: 15px; line-height: 21px;"><br></span></font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span class="Apple-style-span"
 style="color: rgb(34, 34, 34); font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px; "><br></span></div></div></body></html>