1 - Install open vpn :
$ apt-get install openvpn
2 - copy over the conf file and certs
3 - enable ip forwarding
Edit /etc/sysctl.conf and search for the following lines: (Uncomment net.ipv4.ip_forward=1)
# Uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1
4 - Add Rules to /etc/rc.local (NOTE: make sure the iptables is installed! otherwise try apt-get install iptables)
# Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi iptables -t nat -A POSTROUTING -s 5.5.0.0/20 -o eth0 -j SNAT --to 10.1.0.2 iptables -t nat -A INPUT -i eth0 -p udp -m udp --dport 4494 -j ACCEPT iptables -t nat -A POSTROUTING -s 5.5.0.0/20 -o eth0 -j SNAT --to-source 10.1.0.1