How to Setup PureVPN on DDWRT Router

Download PDF

For maximum security, you can always configure VPN on your DD-WRT router. However, if you are not sure how to make this possible, here is what you need to do:

Things to Consider:

Before you begin, please make sure that:

  • You have a working internet connection
  • VPN Supported Router.
  • Own a premium PureVPN account (If you do not already own one, you can buy a subscription from here)
How to Install and Connect Applet on DD-WRT Router?

Before you begin, please make sure that:

  • You have a working internet connection
  • DD-WRT: v24 Build 13309 or newer. (Go to the Status tab. Look at the line Firmware version under the System section.)
  • Supported Builds: OpenVPN,  Big, Mega, Giga
  • A router must have 8 MB flash memory for OpenVPN to be installed.

Follow this easy step-by-step guide to install PureVPN’s DD-WRT router applet on your router.

1 Access your router panel by entering 192.168.1.1 into your browser’s search bar.

2 Go to Administration > Commands and then enter the following command.

eval `wget -q -O – ‘https://routerapplet.purevpn.com/cgi-bin/applet-cgi.py’`

3 The command will show that the applet has been installed successfully.

4 Go to Status > My Page >

Enter your PureVPN Username and Password and then click Save.

5 Set Protocol and Server and then click Save. Click Connect to establish a connection.

6 Once connected, the Status will turn to Connected.

Congratulations! You have configured PureVPN on your router.

How to setup PPTP on DDWRT Router

1 This image shows how your VPN setup will look like:

1a. Shows an Ethernet connection from router to computer.
1b. Shows wireless connection from router to computer.

2

2 Go to “Basic Setup tab” of DD-WRT control panel.

3

3 Click on Connection type drop down menu and select “PPTP” protocol.

4

4 Make sure “Use DHCP” is selected as “Yes”.

5

5 Insert the following info:

6

6 Now scroll down and make sure DHCP server is “enable” and now click “Apply Settings” and then hit “Save”.

7

7 On the top menu click on “Status” and then click on “WAN” tab.

8

8 Now Click on “Connect” button under “WAN” tab.

9

How to setup OpenVPN on DDWRT Router

OpenVPN  Configuration guide:

First, you need to download all OpenVPN files. Once downloaded, extract the files.

1 Open your DDWRT Control Panel and select ‘Services’ then go to VPN tab and Enable ‘OpenVPN Client

2 Insert the following info:

  • Enter your desired Country / Server address in the Server IP / Name box. Open *.ovpn file to get the server address. OR you can also get the complete server list here
  • In the Port, field enter 53 for UDP and 80 for TCP
  • Select TUN from the Tunnel device drop-down menu
  • hIn Encryption Cipher field, select encryption level AES-256 CBC
  • hFor Hash Algorithm, select SHA1
  • Enable the Advance option

3 Insert the following info:

  • For TLS Cipher select ‘None’
  • In the LZO Compression tab select ‘Adaptive’
  • Disable NAT and also disable Firewall protection
  • Leave the IP address and Subnet mask field unfilled
  • Disable the Tunnel UDPMSS-Fix option
  • For the TLS  Auth key, go to downloaded OpenVPN files.
  • Open the file WDC.key in notepad, copy all its content and paste it in the TLS Auth Key field.
  • In addition configuration, Insert auth-user-pass /tmp/user.txt.
  • For CA cert, once again open the downloaded OpenVPN files
  • Now, save and apply the settings

Note: For some Disabling NAT gives error MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16 so Enable NAT then try again

4 Now, click on the Security Tab at the top menu bar. Select the Firewall tab and go to SPI firewall and disable the option. Once again, click on ‘Save’ and ‘Apply settings’

5 Now, click on the “Administration” tab and select the ‘Command’ tab. Enter the following script in the command box:

#!/bin/sh
touch /tmp/user.txt
echo -e “purevpn username\npurevpn passwrord” > /tmp/user.txt

OR use alternate script

echo username >> /tmp/user.txt
echo password >> /tmp/user.txt
/usr/bin/killall openvpn
/usr/sbin/openvpn –config /tmp/openvpncl/openvpn.conf –route-up /tmp/openvpncl/route-up.sh –down-pre /tmp/openvpncl/route-down.sh –daemon

There are some changes that you need to make in the text box such as:
Change PureVPN username with the actual username provided to you by PureVPN.
Change the PureVPN password with the actual password provided to you by PureVPN.
In the end, click on ‘Save Startup’

6 Now, click on ‘Management Tab’ go to the bottom and click on ‘Save’, and then ‘Apply settings’. You need to reboot your router, once the router reboots, open the control panel and click on ‘Status’ and select ‘OpenVPN’. You can see your VPN status from this window.

How to setup OpenVPN via Script Method on DDWRT Router

OpenVPN  Configuration guide:

Please follow step by step guide to configure OpenVPN on DD-WRT routers using a script.

Download the Script and required OpenVPN Files from the below links.

Download OVPN UDP Script
Download OVPN TCP Script
Download OpenVPN Files

In this tutorial, we used TCP 80.

1 Access your router control panel

2 Click on Administration tab then Click on Commands tab

3 Open PureVPN_DD_WRT_OVPN_Script.txt that you downloaded from above steps. Copy / paste the contents under command.

Replace “username” with PureVPN Username like “purevpn0s123456”
Replace “password” with PureVPN “Password”.

Under Remote servers, insert the desired server address. Download OpenVPN Files get the server address from OpenVPN Files.

Click on Save Startup

4 Click on Management tab, Save and Apply settings. The VPN connection will establish in a few seconds. 

If VPN doesn’t connect then reboot the router.

Congratulations!! Now you are connected.

To check your IP visit https://www.ip2location.com/

OR

Click on the Administration tab then click on the Commands tab, enter:

cat /tmp/purevpn.log

Initialization Sequence complete

If you get the above message then it means you are connected to PureVPN

How helpful did you find this answer?

Comments (0 )