//

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
purevpn [2017/04/06 15:27]
anonabox
purevpn [2018/05/04 18:34] (current)
anonabox
Line 2: Line 2:
  
 1) Enable ssh 1) Enable ssh
 +
 +For instructions on using SSH, go here: https://​www.anonabox.com/​wiki/​doku.php?​id=getting_ssh_access
 +
 +----
 +
 2) Connect to the router 2) Connect to the router
 ssh root@192.168.19.84 ssh root@192.168.19.84
  
-3) Create file for the username and password called authuser+---- 
 + 
 +3) Create file for the username and password called authuser
 + 
 +----
  
-cat > /​etc/​openvpn/​authuser << EOF+''​cat > /​etc/​openvpn/​authuser << EOF
  purevpn username  purevpn username
  password  password
- EOF+ EOF''​ 
 + 
 +----
  
 4) Create a new interface for the VPN 4) Create a new interface for the VPN
  
-cat >> /​etc/​config/​network << EOF+---- 
 + 
 +''​cat >> /​etc/​config/​network << EOF
 config interface '​Pure_VPN'​ config interface '​Pure_VPN'​
     option proto '​none'​     option proto '​none'​
     option ifname '​tun0'​     option ifname '​tun0'​
-EOF+EOF''​
  
 +----
  
 5) Copy ca.crt to the router 5) Copy ca.crt to the router
  
-cat >> /​etc/​openvpn/​ca.crt << EOF+---- 
 + 
 +''​cat >> /​etc/​openvpn/​ca.crt << EOF
 paste the ca.crt contents here paste the ca.crt contents here
-EOF+EOF''​ 
 + 
 +----
  
 6) Copy Wdc.key to the router 6) Copy Wdc.key to the router
-cat >> /​etc/​openvpn/​Wdc.key << EOF+ 
 +---- 
 + 
 +''​cat >> /​etc/​openvpn/​Wdc.key << EOF
 paste the ca.crt contents here paste the ca.crt contents here
-EOF+EOF''​ 
 + 
 +----
  
 7) Create a generic .ovpn connection file 7) Create a generic .ovpn connection file
 Use the oven contents downloaded from purevpn site Use the oven contents downloaded from purevpn site
  
-cat >> /​etc/​openvpn/​PureVPNgeneric.ovpn << EOF+---- 
 + 
 +''​cat >> /​etc/​openvpn/​PureVPNgeneric.ovpn << EOF
 client client
 dev tun dev tun
Line 54: Line 79:
 auth-retry interact auth-retry interact
 ifconfig-nowarn ifconfig-nowarn
-EOF+EOF''​
  
 +
 +----
  
 8) Connect to the VPN  8) Connect to the VPN 
-openvpn --cd /​etc/​openvpn --config /​etc/​openvpn/​PureVPNgeneric.ovpn --remote usnj1-ovpn-tcp.pointtoserver.com 80 &+''​openvpn --cd /​etc/​openvpn --config /​etc/​openvpn/​PureVPNgeneric.ovpn --remote usnj1-ovpn-tcp.pointtoserver.com 80 &''​ 
 + 
 +----
  
 Notes: Notes:
 You can Run the command at startup You can Run the command at startup
 paste the following command before exit 0 paste the following command before exit 0
 +
 +----
  
 openvpn --cd /​etc/​openvpn --config /​etc/​openvpn/​PureVPNgeneric.ovpn --remote usnj1-ovpn-tcp.pointtoserver.com 80 & 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 the 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. 
 +
 +For More detailed instructions on setting up custom commands for your VPN, go here: https://​www.anonabox.com/​wiki/​doku.php?​id=building_custom_commands_for_third_party_vpns
 +
 +----
 +
 +For additional help setting up third party VPNs:
 +[[https://​www.anonabox.com/​wiki/​doku.php?​id=3rd_party_vpn_general_setup|https://​www.anonabox.com/​wiki/​doku.php?​id=3rd_party_vpn_general_setup]]
 +