ProPrivacy is reader supported and sometimes receives a commission when you make purchases using links on this site.

How to Install a VPN on a DD-WRT Router

If you own a DD-WRT router, you can install your VPN's software directly onto it. Remember, not all VPNs are compatible with DD-WRT firmware so you will need to check with your manufacturer if you intend to flash a router with DD-WRT yourself.

For most people, the process of installing DD-WRT firmware is too technical (and can result in "bricking" it). For this reason, the majority of people elect to purchase a ready-flashed DD-WRT router. In fact, it is even possible to buy a pre-flashed DD-WRT router that comes pre-loaded with your VPN's software. For more information about our favorite pre-flashed routers take a look at our 5 best DD-WRT Routers of 2018 page.

If you already own a DD-WRT router and want to install VPN software onto the device yourself - this guide is for you!

Setup a VPN on Your Router

The best form of VPN encryption is OpenVPN. For this reason, this setup guide focuses on that recommended protocol. We recommend that you stick to using OpenVPN if you want your devices to be most secure.

In order to install a top-of-the-range VPN client onto a DD-WRT router (such as ExpressVPN - the one used as an example in this guide), you will require DD-WRT firmware that can run the latest VPN configurations and that has a minimum of 8 MB of flash memory on board.

To check whether your router has these features you will need to check with your manufacturer. Alternatively, you could ask - because they are experts on the subject of flashed routers.

If your router is suitable then you can follow the steps in this guide to install the VPN onto your router. In this article, we will guide you through installing an OpenVPN connection on your router (the most secure form of VPN connection with military-grade encryption).

  1. To set up a VPN on your DD-WRT router, you will first need to download the OpenVPN configuration files. These files will be provided by your VPN, so please contact them for the files. Remember that your VPN will have a setup guide like this one (that is specific to that VPN), so please ask them to see that guide also!
  2. In your web browser, go to your router’s settings page (on most DD-WRT routers the default address is
  3. Once in control panel for your  DD-WRT router, click on the Services tab, followed by the VPN sub-tab.
  4. Next, enable the Start OpenVPN Client option. This will open the OpenVPN configuration panel where you will be able to enter your settings.DD-WRT Setup Guide

For versions of DD-WRT with User Pass Authentication

This step depends on whether your version of DD-WRT firmware has User Pass Authentication. If it does follow these steps, if not jump on to the next section.

  1. If your version of DD-WRT  has User Pass Authentication, your screen should like this:DD-WRT Setup Guide
  2. If it does, then enter the following settings: strong>Server IP/Name: You will get this address form your VPN Username: You will get this username from your VPN (it might differ from your VPN login username) Password: You will get this password from your VPN (it might differ from your VPN login password)

For versions of DD-WRT without User Pass Authentication

If your version of DD-WRT does not have User Pass Authentication, follow these steps instead:

  1. Look for the Additional Config text box and enter the following command: auth-user-pass /tmp/auth.txt
  2. The “Server IP/Name” is the address of the VPN server location you wish to connect to. You can find your Server IP/Name and Port in the .ovpn config file you get from your VPN. To do so: Open the .ovpn file in any text editor. Copy the “remote” server cluster name listed in the config file, and paste it into the Server Address/Port field of the OpenVPN basic control panel. Do the same for the port.DD-WRT Setup Guide
  3. In the control panel for your  DD-WRT router, click on the “Services” tab, followed by the “VPN” sub-tab.
  4. Locate the  Additional Config and enter the config details. You will need to get these from your VPN.
    For ExpressVPN they look like this:DD-WRT Setup Guide
  5. Look at the OpenVPN config (.ovpn) file that you got from your VPN provider earlier in a text editor. Copy-paste the text in between "tls-auth and /tls-auth" into the TLS Auth Key field. See the example image below to copy the right data: DD-WRT Setup Guide
  6. Look at the .ovpn file again in a text editor and copy the text in between "ca and /ca"  and paste it into the CA Cert field. See sample image below:DD-WRT Setup Guide
  7. Copy the text in between "cert and /cert" and paste it into the Public Client Cert field. See the example image below to copy the right data:DD-WRT Setup Guide
  8. Copy the text in between "key and /key" and paste it into the Public Client Cert field. See the example image below to copy the right data:DD-WRT Setup Guide
  9. Click on Save, and then click Apply settings to start the connection to the VPN.
  10. To check on your connection status, Click on Status > OpenVPN. If you see blank forms, something has not been set up properly. You will probably need to follow the steps above again to make sure everything has been entered and saved correctly. Once entered correctly it should look like the screenshot below: DD-WRT Setup GuideDD-WRT Setup Guideddwrt p2
  11. If you need help with any of the steps above, or if anything is unclear, please contact your VPN directly. They will have a VPN-specific guide like this one with all the data you need. Live chat support will also be happy to walk you through the process.

How to Test a VPN on your Router

DNS leaks tell your Internet Service Provider what websites you are visiting online: spoiling the privacy provided by the VPN. This is a huge problem, which is why you should always ensure that you are not getting any DNS leaks. To ensure that you are not getting DNS leaks on your router's VPN connection, follow the following steps.

  1. On the router dashboard, go to Setup > Basic Setup.DD-WRT Setup Guide
  2. Under Network Address Server Settings (DHCP), enter the following DNS settings (these are the setting for Google DNS - you may need to use different DNS setting so please check with your VPN): Static DNS 1:   -  Static DNS 2:  - Forced DNS Redirection: tick this box DD-WRT Setup Guide
  3. At the bottom of the page, click Save and Apply Settings.DD-WRT Setup Guide
  4. At the top of the page, navigate to Services > Services.DD-WRT Setup Guide
  5. Under Additional DNSMasq Options, enter the following interface=tun1 (for ExpressVPN). However, you should ask your VPN for these settings or follow their specific guidelines.
  6. At the bottom of the page, click Save and Apply Settings.

DD-wRT VPN Setup Guide - Conclusion

Installing a VPN onto a DD-WRT router means that all the devices in your home are protected with a single VPN connection. This is an extremely efficient and secure way of setting up a VPN. Above we have explained the steps needed to install a VPN on a DD-WRT router. In the example we use ExpressVPN. However, any of the VPNs in our 5 best VPNs for DD-WRT routers will have a specific set up guide, so please contact your VPN for more precise guidelines on setting up your VPN.

Written by: Ray Walsh

Digital privacy expert with 5 years experience testing and reviewing VPNs. He's been quoted in The Express, The Times, The Washington Post, The Register, CNET & many more. 


on January 14, 2020
My DD WRT Control panel doesn have the IPV6 or VPN (sub tab) under Services tab. is there a way to enable this?
Douglas Crawford replied to AlexVR
on January 15, 2020
Hi AlexVR. Hmm. I just checked and mine does have these tabs. Older versions of DD-WRT may not support IPv6, but pretty much all should include some form of VPN support. What is your DD-WRT version number?

Write Your Own Comment

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

  Your comment has been sent to the queue. It will appear shortly.

We recommend you check out one of these alternatives:

The fastest VPN we test, unblocks everything, with amazing service all round

A large brand offering great value at a cheap price

One of the largest VPNs, voted best VPN by Reddit

One of the cheapest VPNs out there, but an incredibly good service