apt-get install pptp-linux
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
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
ip rule add from <your.local.ppp0.ip> lookup myanon ip route add default dev ppp0 table myanon
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.