[Openswan Users] openswan and two internet links

Mitja mitja at rageofdivine.net
Thu Feb 22 13:33:31 EST 2007


Hi,

I have vpn gateway with two different ISPs.


ISP1 ----eth1| openswan    |
             | VPN gateway |eth0-- intranet
ISP2 ----eth2|             |


Dafault gateway on server is set to ISP1.


VPNs over ISP1 works well, but some tunnels I want over ISP2 (link2).
In that case, openswan creates reverse route to default gateway and not 
to isp2_gateway.

How can I solve this (except delete created route and manualy add right 
route to isp2_gateway for link2)?

conn link1 <- works OK
        left=isp1
        leftnexthop=isp1_gateway
        leftsubnet=192.168.1.0/24
...


conn link2 <- wrong revese route is created
        left=isp2
        leftnexthop=isp2_gateway
        leftsubnet=192.168.1.0/24
...

OS = RHEL4, openswan 2.4.7

Thanks, Mitja


More information about the Users mailing list