[Openswan Users] Routing through tunnel question

Peter McGill petermcgill at goco.net
Mon Jan 30 09:13:20 CET 2006

> remote subnet
> local subnet

> route add -net netmask gw

You should have a connection for the route, this is the preferred,
and tested method:

Add a second conn same as the first, but change the name,
and the subnets:
use remote subnet (or if you prefer)
use local subnet (or or if you also want
to route traffic from other subnets through this one.)
Add the reverse conn on the remote gateway as well :)

Then if is not the private ip of the remote gateway, then you
will also need a route on the remote gateway:
route add -net netmask gw

It is perfectly acceptable to have multiple conn's between gateways.

Peter McGill
Software Developer / Network Administrator
Gra Ham Energy Limited

More information about the Users mailing list