After establishing a pptp client connection from the router - rt-ac68u - a new default route is added to the routing table. This means all traffic is going through this newly added default route. What I want is only route ip traffic through the vpn for this specific subnet.
I could manually achieve this by removing (using putty) this route from the routing table and adding the specific one, like so:
route del default gw 192.168.2.4
route add -net 192.168.2.0 netmask 255.255.255.0 dev ppp5
How can I achieve this automatically, whenever the pptp client connection is establsihed this should be the default behaviour.
I could manually achieve this by removing (using putty) this route from the routing table and adding the specific one, like so:
route del default gw 192.168.2.4
route add -net 192.168.2.0 netmask 255.255.255.0 dev ppp5
How can I achieve this automatically, whenever the pptp client connection is establsihed this should be the default behaviour.