[Openswan Users] Network problem. (ROUTES!!!!)

Paul Wouters paul at xelerance.com
Mon Sep 19 20:41:36 CEST 2005


On Mon, 19 Sep 2005, Carlos Arnt wrote:

> How make route in openswan ??
>  
> I will explain my network problem
>  
> I have 3 networks
>  
> A - 192.168.1.x
> B-  192.168.2.x
> C-  192.168.3.x
>  
> Using ipsec i have Network A and Network B connected.
> That´s great, both see each other very well.
>  
> But now in Network A i have a router connected to it using the IP
> 192.168.1.254
>  
> From network A i can see Network C and from C see A.
> Great ..
>  
> How make Network B see Network C ???
>  
> I insert a route in Network A
>  
> route add -net 192.168.3.0 gw 192.168.1.254

You can't throw arbitrary traffic through a tunnel. You will need to setup
proper IPsec tunnels for all subnets involved.

If 192.168.3.0 is behind 192.168.1.254, then you need to add a second tunnel
from A to B for the traffic with source 192.168.3.0. Just copy the connection
information, rename the connection and change the one subnet= option.

Paul 


More information about the Users mailing list