Routing problem with openvpn and openswan
Andreas
andreas at tiddelipom.com
Thu Feb 1 13:43:17 UTC 2007
Hi!
I have a dapper-box which acts as a VPN-gateway to another office via
OpenSwan, works like a charm. This dapper-box is also an OpenVPN-gateway
to the office lan for our roadwarriors out in the world. It also works
perfect.
Now, our roadwarriors need to access a server on the remote office
connected via the OpenSwan link. And that's my problem. I can't figure
out how to route and nat the traffic from the openVPN link over to the
OpenSwan link so they can reach the remote office.
The office lan has ip range 10.30.0.0/24. Traffic from the roadwarriors
comes in on tun0 and comes the 10.8.0.0/24 range. The remote office net
has 10.31.116.0/24.
eth0 = 10.30.0.253 (local office lan)
eth1 = 1.2.3.4 (external address)
tun0 = 10.8.0.1 (OpenVPN)
remote office lan = 10.31.116.0/24
Openswan has leftsubnet=10.30.0.0/24 option set, so I'm guessing that I
have to do some magic tricks to transform the OpenVPN traffic or something.
Any clues?
/Andreas
More information about the ubuntu-users
mailing list