Monday, 27 May 2013

Disapearing routing table entries added by pppd

Disapearing routing table entries added by pppd

I have a problem with routing added by PPPD. Routes are added and then removed by some process. In logfiles I cannot find any footprints - who and why removes these routes.
PPPD is called as follows:
/usr/sbin/pppd nodetach lock defaultroute debug noipdefault 115200 noauth crtscts modem usepeerdns
Connection is made, ppp0 interface is created, IP address is assigned, but no routing entries are added.
I even added script in /etc/ppp/ip-up.d/routes.sh although "defaultroute" key is used.
#!/bin/sh
/sbin/route add $PPP_REMOTE $PPP_IFACE
/sbin/route add default gw $PPP_REMOTE
Routes are added for very short period of time (aprox. 1sec).
When I execute /etc/ppp/ip-up.d/routes.sh manually - routes are added correctly. And no one deletes them.
Any ideas or suggestions?
Thanks in advance.

No comments:

Post a Comment