I have a PPTP tunnel set up that just redirects some traffic to the tunnel, no all internet.
For this i like every time the tunnel reconects (it drops several times a day) to automatically add the IP routes ( these get deleted when the tunnel drops)
how can i manage to do this?
I have read than ip-up script is created on tunnel up, so adding thing there should not help, and will be delleted everytime….
I'm adding routes manualy at the moment like this:
ip route add default dev ppp0 table 3 ip rule add to IP.ip.ip.ip/19 table 3 pref 300
Also to mention, that i can not use WAN UP script, since the tunnel does not modify the WAN connection, I have the router internet un checked on the GUI.