Now introducing 7-Day premium trial to work, binge, & stay secure online

PureVPN is now Zero-Log Certified by Altius IT, one of the leading independent US-based Auditors. Read More 

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.
  • 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 into your browser’s search bar.

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

eval `wget -q -O - ''`

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 that how your VPN setup will look like:

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


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


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


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


5 Insert the following info:

  • Enter your Gateway (PPTP server) (Example: Click here to get the complete server list.
  • Enter Username & password provided by PureVPN.
  • Write “refuse-eap” in additional PPTP option box.
  • ( Important Note: Your email address is not your VPN login username. )


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


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


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


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 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 Tunnel Device drop down menu.
  • In Tunnel Protocol, select UDP for port number 53 or TCP for port number 80.
  • In Encryption Cipher field, select encryption level AES-256 CBC.
  • For Hash Algorithm, select SHA1.
  • Enable the Advance option.

3 Insert the following info:

  • For TLS Cipher select ‘None’.
  • In 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 TLS Auth Key, go to the downloaded OpenVPN files. Open the file titled ‘WDC.key’ in notepad, copy all its content and paste it in the TLS Auth Key field.
  • In Additional Configuration, insert auth-user-pass /tmp/user.txt.
  • For CA Cert, once again open the downloaded OpenVPN files. Now, open the file titled ‘CA.crt’ in notepad, copy all its content and paste it in the CA cert field.
  • Now, save and apply the settings

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

4 Now, click on the Security Tab at the top menu bar. Select 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 command box:

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/ –down-pre /tmp/openvpncl/ –daemon

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

6 Now, click on ‘Management Tab’ go at the bottom and click on ‘Save’ and then ‘Apply settings’. You need to reboot your router, once 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 script.

Download the Script and required OpenVPN Files from 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 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. VPN connection will establish in few seconds. 

If VPN doesn’t connect then reboot router.

Congratulations!! Now you are connected.

To check your IP visit


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

cat /tmp/purevpn.log

Sequnce complete

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


How helpful did you find this answer?

Comments (0 )