I'm running pppd in a Ubuntu VM. When it's connected the ip route is like this

# ip route
default via dev eth0 onlink
XX.XX.250.5 dev ppp0  proto kernel  scope link  src XX.XX.250.43 dev eth1  proto kernel  scope link  src dev docker0  proto kernel  scope link  src linkdown dev eth0  proto kernel  scope link  src

The eth0 is the default route out

# ip route get via dev eth0  src

Now, I need to route everything through ppp0 (except for the remote PPP server), any ideas?

P.S I've tried the following and it just cut all internet connections,

route add default gw XX.XX.250.5

Problem resolved.

Simply instruct sstpc to save server route by adding the --save-server-route parameter and let pppd replace the default route by enabling the replacedefaultroute option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.