pptp

Install the pptp client

apt-get install pptp-linux

Decrease the logging

In the provider-file, /etc/ppp/provider, add "—loglevel 0"

pty "pptp <the.server.com> --nolaunchpppd --loglevel 0"

Also, comment or remove any line starting with /dev

# Serial device to which the modem is connected.
# /dev/ttyACM0

Setup the routes

delete old routes

I call my rules myanon:

ip rule | sed -n 's/.*\(from[ \t]*[0-9\.]*\).*myanon/\1/p' | while read RULE;
   do ip rule del $RULE;
done

set up new ones

ip rule add from <your.local.ppp0.ip> lookup myanon
ip route add default dev ppp0 table myanon

Configure applications

Some applications can be bind to a certain interface, and they will not use the default gateway if that is on network other than the network of the interface they are bound to. This is nice, deluge is an example.

Other applications, e.g. squid can be configured to use a specific interface for internet-traffic by the tcp_outgoing_address directive.

I have not found a way to get privoxy to not use the default gateway, instead I had to chain

privoxy -> squid
, even though the prefered order would be the opposite.

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 17, 2019