NetworkManager VPN plugin kills my custom routes.



Good day!

I'm using nm-applet 0.6.4 and cvs version of VPN plugin.
When initializing NM kills my custom eth0 routes which have been added
by the system at boot time.

Even though I re-enter my custom routes by hand, NM kills them when
disconnecting its VPN connection. For example:

1. Before VPN connection

myhost ~ # ip r
89.21.79.38 via 10.167.0.17 dev eth0 
10.167.0.0/16 dev eth0  proto kernel  scope link  src 10.167.21.105 
127.0.0.0/8 dev lo  scope link 
default via 10.167.0.17 dev eth0 

2. After VPN connection

myhost ~ # ip r
195.14.38.15 via 10.167.0.17 dev eth0 
89.21.79.38 via 10.167.0.17 dev eth0 
10.167.0.0/16 dev eth0  proto kernel  scope link  src 10.167.21.105 
127.0.0.0/8 dev lo  scope link 
default dev ppp0  scope link 

3. After VPN disconnection

myhost ~ # ip r
10.167.0.0/16 dev eth0  proto kernel  scope link  src 10.167.21.105 
127.0.0.0/8 dev lo  scope link 
default via 10.167.0.17 dev eth0 

As you can see, NM deleted the route to 89.21.79.38 from routing table.
How can I prevent NM from this behaviour and preserve my custom routes?

Thanks in advance! 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]