I have a ubuntu server with public ip and want to connect to some network with ipsec tunnel. I can establish the connection (tunel), but when I try to ping the internal network PCs, there is no answer. I'm using Openswan
. Here is my topology:
(ubuntu box with public ip) --- (vpn server/router) --- (some internal pc)
I don't have a network behind that linux server. I just want the connection from that server to the network and that I can ping the internal PCs. Ii assume that when I ping something, it tries to ping it via internet. How can I add the route to go through ipsec tunnel because I dont get any new interface when I connect to ipsec tunnel.
My server is the ipsec client.
Here are my ipsec settings:
config setup
virtual_private="%v4:10.172.110.0/24"
nat_traversal=yes
protostack=netkey
oe=no
plutoopts="--interface=eth0"
plutodebug=all
conn myvpnconn
authby=secret
pfs=no
phase2=esp
ike=aes256-sha1
auto=add
keyingtries=3
dpddelay=30
dpdtimeout=120
dpdaction=clear
rekey=yes
keyexchange=ike
ikelifetime=8h
keylife=1h
type=tunnel
leftsubnet=10.20.30.0/24
left=1.1.1.1
leftsourceip=10.20.30.1
right=2.2.2.2
rightsubnet=10.172.110.0/24
rightnexthop=%defaultroute
phase2alg=aes256-sha1