I have a server with a vpn (is vpn server also).
For some reasons the vpn is disconnecting occasionally.
I have a route that i add manually afte getting up as I need to see from the server (cloud) the internal network, after the vpn.
So i add this : route add -net 192.168.54.0/24 gw 10.50.20.2
manually
every time after vpn goes up.
I tried to add this in the /etc/network/interfaces (yes its debian)
up route add -net 192.168.54.0/24 netmask 255.255.255.0 gw 10.50.20.2
down route del -net 192.168.54.0/24 netmask 255.255.255.0 gw 10.50.20.2
but it never gets up automatically.. I assume i do something wrong.
So i want this route to come up when the vpn is connected.
Please can somebody help
many thanks