[Openswan Users] --up overwrites routing table entry

hans lux hans.lux at gmx.de
Tue Apr 17 06:28:18 EDT 2007


hello,

when i call ipsec auto --up xxx
to establish a vpn connection
a route to the connected remote network
is added to the routing table (via inet gateway).

but also a static route is removed/replaced that
is needed to route another private network.


Destination     Gateway         Genmask         Flags      Iface
in.et.ad.dr     0.0.0.0         255.255.255.248 U          eth0
192.168.5.0     0.0.0.0         255.255.255.0   U          eth2
10.106.121.0    0.0.0.0         255.255.255.0   U          eth2

10.106.99.0     10.106.121.1    255.255.255.0   UG         eth2
       ^------- this is my static route
0.0.0.0         in.et.ad.dr    0.0.0.0         UG         eth0

after ipsec auto --up xxx it becomes

Destination     Gateway         Genmask         Flags      Iface
in.et.ad.dr     0.0.0.0         255.255.255.248 U          eth0
192.168.5.0     0.0.0.0         255.255.255.0   U          eth2
10.106.121.0    0.0.0.0         255.255.255.0   U          eth2

10.106.99.0     in.et.ad.dr    255.255.255.0   UG         eth2
       ^------- this is my static route
0.0.0.0         in.et.ad.dr    0.0.0.0         UG         eth0

so i'm missing my
10.106.99.0     10.106.121.1    255.255.255.0   UG         eth2
line

what's the best way to handle that ?
can i "catch"  the "up-event" somewhere ?

thanks
hlux


More information about the Users mailing list