VPN Tunnel
Put ovpn files in /etc/openvpn-client
make a symbolic link to openvpn-client from /etc/init.d
cd /etc/init.d/
ln -s /etc/openvpn-client openvpn-client
create new tables in /etc/iproute2/rt_tables - should look like:
#
# reserved values
#
255 local
254 main
253 default
252 nic
251 vpn
0 unspec
#
# local
#
#1 inr.ruhep
your ovpn file should look something like this:
client
dev tun
proto udp
remote chil.torguardvpnaccess.com 443
remote 37.235.52.19 443
resolv-retry infinite
remote-cert-tls server
route-nopull
persist-key
persist-tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
auth-user-pass ./credentials
ping-restart 0
route-delay 2
mute-replay-warnings
verb 3
ca ./ca.crt
compress
reneg-sec 0
keepalive 5 30
sndbuf 393216
rcvbuf 393216
status /var/log/openvpn-status.log
Get VPN to start automatically
update-rc.d openvpn-client defaults
----
http://www.jamescoyle.net/cheat-sheets/791-update-rc-d-cheat-sheet