-
Install pptp client
$ sudo pacman -S pptpclient -
Add new vpn connection:
$ pptpsetup --create my_tunnel --server vpn.example.com --username alice --password foo --encrypt -
Route All Traffic by
/etc/ppp/ip-up.d: Create a file called01-routes.shunder/etc/ppp/ip-up.d -
Append this lines to the newly created file:
#!/bin/bash
# This script is called with the following arguments:
# Arg Name
# $1 Interface name
# $2 The tty
# $3 The link speed
# $4 Local IP number
# $5 Peer IP number
# $6 Optional ``ipparam'' value foo
ip route add default via $4
-
Make the file executeable:
sudo chmod 755 01-routes.sh -
Connect:
$ pon my_tunnel -
Disconnect:
$ poff my_tunnel -
If you need to delete your delete your vpn connection:
$ pptpsetup --delete my_tunnel