[strongSwan] Problem when forwarding all traffic to tunnel (site-to-site VPN)
vfreex at gmail.com
Sun Sep 20 16:38:15 CEST 2015
The gateway of my local site has a site-to-site VPN to my remote site. I
want to forward all traffic (including internet traffic) from my local site
to remote site.
The ipsec.conf in local gateway:
After establishing the IPSec connection, the gateway can access to the
internet through the tunnel, but at the same time the all hosts behind the
gateway will lose connectivity to the gateway.
That makes sense, because the config rule 'rightsubnet=0.0.0.0/0' tells
IPSec to forward all traffic into tunnel, including the traffic to LAN. I
added a passthrough policy like this:
But this policy does not work. Hosts in lan still cannot ping gateway.
I decided to use traceroute to see what is going on. The result shows that
the traffic to LAN goes to the WAN interface without IPSec protection. I
checked the route table and every thing looks normal. I tried adding a
route rule 'ip route add 10.10.0.0/16 dev lan' but this didn't work.
I stop the IPSec tunnel, the connection between LAN hosts with the gateway
I will be very appreciate it if you can help me solve this problem.
Thanks & Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users