You are not logged in.

#1 2014-01-18 08:19:01

JJJollyjim
Member
Registered: 2013-07-28
Posts: 21

Routing all traffic through PPTP: "RTNETLINK answers: File exists"

Following the instructions on the wiki, I've set up a PPTP connection (shows in "ip addr show", no error message with the verbose options given).

I'd like to route all traffic through the proxy:

sudo ip route add default dev ppp0

Unfortunately the above command responds with:

RTNETLINK answers: File exists

And doesn't affect network traffic. Any ideas on getting this working? Thanks!

Offline

#2 2014-01-18 08:28:43

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,001
Website

Re: Routing all traffic through PPTP: "RTNETLINK answers: File exists"

It means you already have default route added on that interface, you cannot have two. Use either:

ip route replace default dev ppp0

or

ip route flush dev ppp0
ip route add default dev ppp0

Offline

#3 2014-01-18 08:47:28

JJJollyjim
Member
Registered: 2013-07-28
Posts: 21

Re: Routing all traffic through PPTP: "RTNETLINK answers: File exists"

Thanks for that, it works great.

Offline

Board footer

Powered by FluxBB