[Openswan Users] Help - Can not reconnect to VPN after disconnected

Stefanus Hartanto tetepppp at yahoo.com
Wed Nov 23 04:01:01 EST 2011


Hi,

My name is Stefanus. I am very new with Linux. This is my first installation. 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. 
The PC is behind Router Firewall (ip 192.168.1.1)

The PC ip address is 192.168.1.9
I have set port forwarding for 1701 to the PC
I use iphone to connect to the VPN server using its 3g connection so it is using separated network from my LAN
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.
I can reconnect back again if I restart the ipsec service.

I have tried to google. I only found similar issue in this url http://lists.openswan.org/pipermail/users/2010-August/019213.html
but i can not find the solution.
Any help will be very appreciated.

Thanks in advance.
Stefanus


here is my setting:

/etc/ipsec.conf
-----------
nat_traversal=yes
virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
oe=off
protostack=netkey


conn L2TP-PSK
authby=secret
pfs=no
auto=add
keyingtries=3
rekey=no
ikelifetime=8h
keylife=1h
type=transport
left=192.168.1.1
leftprotoport=17/1701
right=%any
rightprotoport=17/%any

rightsubnet=vhost:%priv


/etc/xl2tpd/xl2tpd.conf

------------
[global]
ipsec saref = yes
[lns default]
ip range = 192.168.1.200-192.168.1.210
local ip = 192.168.1.9
refuse chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20111123/b56ffcd2/attachment-0001.html 


More information about the Users mailing list