This is an old revision of the document!

PureVPN account (www.purevpn.com)

1) Enable ssh

2) Connect to the router ssh root@

3) Create file for the username and password called authuser:

cat > /etc/openvpn/authuser « EOF purevpn username password EOF

4) Create a new interface for the VPN

cat » /etc/config/network « EOF config interface 'Pure_VPN' option proto 'none' option ifname 'tun0' EOF

5) Copy ca.crt to the router

cat » /etc/openvpn/ca.crt « EOF paste the ca.crt contents here EOF

6) Copy Wdc.key to the router

cat » /etc/openvpn/Wdc.key « EOF paste the ca.crt contents here EOF

7) Create a generic .ovpn connection file Use the oven contents downloaded from purevpn site

cat » /etc/openvpn/PureVPNgeneric.ovpn « EOF client dev tun proto tcp persist-key persist-tun ca ca.crt tls-auth Wdc.key 1 cipher AES-256-CBC comp-lzo verb 1 mute 20 route-method exe route-delay 2 route float auth-user-pass authuser auth-retry interact ifconfig-nowarn EOF

8) Connect to the VPN openvpn –cd /etc/openvpn –config /etc/openvpn/PureVPNgeneric.ovpn –remote usnj1-ovpn-tcp.pointtoserver.com 80 &

Notes: You can Run the command at startup paste the following command before exit 0

openvpn –cd /etc/openvpn –config /etc/openvpn/PureVPNgeneric.ovpn –remote usnj1-ovpn-tcp.pointtoserver.com 80 &

Now that you have all the config files in place you might be able to execute the vpn connection by creating a custom command. To get to eh custom commands page in the admin interface, click the system dropdown, and then the custom commands link.

The command in this case is

openvpn –cd /etc/openvpn –config /etc/openvpn/PureVPNgeneric.ovpn –remote usnj1-ovpn-tcp.pointtoserver.com 80

You can also make a custom command to kill the vpn process on that same page, that way you have one button to start the connection in the interface and one button to stop it.