after the pptp is up, I found there is an entry in route table:
default via 10.0.0.1 dev ppp5
default via 192.168.1.1 dev vlan2 metric 1
This directs all outgoing traffics through 10.0.0.1 which is the VPN gateway. But I want route all traffic through local gateway 192.168.1.1 except certain address for example 172.217.26.36.
I try to delete the default via 10.0.0.1 dev ppp5
. Then try to add a new entry:
ip route add 172.217.26.36 via 10.0.0.1 dev ppp5
this always failed with: RTNETLINK answers: No such process
Any idea how to achieve this?
Thanks!