OpenVPN

Install

apt-get install openvpn

Set up

modprobe tun
openvpn --mktun --dev tun0

Create key and put on both the server and client

openvpn --genkey --secret /etc/static.key

Start server

openvpn --dev tun0 --ifconfig 10.1.0.1 10.1.0.2 --secret /etc/static.key

Start client

openvpn --dev tun0 --remote {server address} --ifconfig 10.1.0.2 10.1.0.1 --secret /etc/static.key