How to set-up DD-WRT

Peter Selmeczy

Peter Selmeczy

May 9, 2014

We often review products (Apple TV, Xbox, etc), routers and even post Top 5 lists (Best DD-WRT routers, Best VPNs for DD-WRT)  where we mention the use of DD-WRT, but it has come to our attention that we never show you how to do it yourself. So to rectify this here is our guide to setting up your own DD-WRT VPN router. Shortly we will also be bringing you articles showing you how to make it into a media base, NAS (Network Area Storage) drive or  use it to share your printer.

If you’re interested in DD-WRT we’ve also published a huge DD-WRT guide that covers everything from the basics to advance setups.


Before we continue we must state that some basic technical expertise will be required and there is a possibility of ‘bricking’ (making unusable) your router and/or voiding your warranty and we here at BestVPN can’t be held responsible in these cases. If after reading the article you think that you’d rather not attempt it than you’re in luck as you can buy pre-configured routers here and here.

What is DD-WRT

DD-WRT is an open source software that replaces the built-in programming of your router and thereby giving you high level of control and functionality without having to shell out for expensive routers. Flashed routers have many advantages but the one that we will be looking at today is setting it up for VPN use as this poises the following advantages:

  • Only need one VPN connection for all your devices
  • Safe and secure browsing for all connected devices
  • Access geolocation content to allow more content for media servers

The only downside is that with using DD-WRT it is a bit more complicated to change server locations then it is with a built in client – though you can still use them side by side.

Getting Started

Getting started is very easy and only requires the following few things:

  • A DD-WRT compatible router. A full list of the supported makes and models can be found on their wiki website or use their router database to search for a specific make and model. The latter is more helpful if you don’t already have one but know what specifications you would like.
    • Note that if you wish to use OpenVPN the general rule is for your router to have at least 8Mb of RAM, you can check this on the supported makes and models website
  • A full user manual of the router you wish to flash
  • An Ethernet cable
  • A valid VPN account. While you can use most VPN services, in our ‘Best VPNs for DD-WRT‘ article we recommend the companies that provide you with the best set-up guides and also customer service that can help you if anything goes wrong but below you can find a quick summary of them:

DD-WRT VPNs Summary

Rank Company Score Price Link
Buffered review
$6.60 / monthVisit Site
ExpressVPN review
$6.67 / monthVisit Site
Special Deal: Save 49% Today!
AirVPN review
$4.82 / monthVisit Site
IPVanish review
$3.25 / monthVisit Site
VPNArea review
$4.92 / monthVisit Site

Installing DD-WRT

This is the more ‘difficult’ part of the setting up process and it just gets easier from here.

  1. After finding your router using the router database download the .bin installation file. There should be two files “factory-to-ddwrt” is the one you will need to use the other is if they release an updated firmware for your model
  2. Do a 30/30/30 reset. What this means is hold the reset button for 90 seconds without letting go. When you first press it hold it for 30 seconds then unplug the power cable for 30 seconds while still pressing the button and then plug the power back in and hold the reset for a further 30 seconds.
  3. Plug your router into your computer using an Ethernet cable
  4. In your browser go to the default router IP (usually or similar)
  5. Navigate to the ‘Firmware Upgrade’ section which is generally under ‘System Tools’
    DDWRT Router Upgrade
  6. Find the file you have downloaded from DD-WRT, click upgrade and wait until your router reboots itself.
  7. Repeat Step 2.
  8. When you login to your router (IP:, username: admin, password: admin) you will be greeted with the below image. In your possible wireless connections it will also appear as dd-wrt and initially it will be an unprotected connection.
    DDWRT StartUp
  9. Change the basic settings (such as name and security) of your new DD-WRT wireless router under the ‘Wireless’ tab
    DDWRT Basic Setup

Setting-up VPN

Now as mentioned there are plenty of settings you can change on your new DD-WRT router and we will be writing instructions on a number of these in the future – leave us a comment if there is anything specific you’d like to see. For the moment we will concentrate on setting up a VPN connection. If you looked at the DD-WRT wiki website for setting up  VPN you are probably very confused but don’t worry the process is very easy. There are two different methods and it’s best if you also look at the providers setup guide to see what they recommend. If your chosen provider doesn’t show the setup guide then don’t worry as long as you can obtain a .ovpn configuration file.

Built-in/GUI Method

This method uses the DD-WRT GUI to help you set up the VPN connection. Since most providers only give out OpenVPN configuration files will only explain how to set up OpenVPN. The best thing about this method is that though you need to do some searching through text files it is easier to change servers than with the Command Method and the process is the same independent of the provider.

  1. Once you have logged in to DD-WRT navigate to Services -> VPN and here enable the ‘Start OpenVPN Client’
  2. Open your selected .ovpn file in a text editor – such as Notepad
  3. In the OpenVPN client enter the required information as we will explain in the next steps. The below image is for reference and can vary by provider so check their recommendations.
    DDWRT OpenVPN Settings
  4. Copy the following texts from the .ovpn file
    1. from the line that follows the pattern remote xxxx the web address goes into the “Server IP/Name” field and xxxx (usually 1194) is the “Port” field below it
    2. the text between  and tlsauth> tags into the “TLS Auth Key” field
    3. the text between  and tags into the “CA Cert” field
    4. the text between  and tags into the “Public Client Cert” field
    5. the text between  and tags into the “Private Client Key” field
  5. Click “Save” and then “Apply Settings” to start the service
  6. To check that the service is running correctly navigate to Status-> OpenVPN. The log should contain all kinds of messages about encryption and management if it is blank then you might have done something wrong.

Command Method

The command method uses the command section to basically insert code directly into the system. The other downside of this compared to the GUI method is that it requires you to reboot the router a number of times. The upside is that it is a lot easier to change server locations and doesn’t require you copy and past as much text.

  1. On your providers website find the configuration files for the router. This should be just a plain text file.
  2. Once you have logged in to your router go to Administration -> Commands and paste the text you have downloaded in the previous step into the text box, enter your Username and Password as required and click ‘Save Startup’
    DDWRT VPN Commands
  3. Reboot your rooter either manually or Administration -> Management -> Reboot Router
  4. Go to the commands page as per step 2 and type in /tmp/ibvpn/vpn start aaa.bbb.ccc.ddd where aaa.bbb.ccc.ddd is the IP of the server you wish to connect to – also found from your providers website. Press ‘Run Commands’ and you should successfully connect (this execution code will differ from provider to provider – clearly we used ibVPN for the demonstration)
    DDWRT VPN Commands Connected
  5. To stop the VPN service type in /tmp/ibvpn/vpn stop 
  6. For OpenVPN the process is the same except you need to use a different Start Up file but you can also download these from your provider.

Reverting back to original software

If you decide you do not wish to use DD-WRT any longer for whatever reason then it is fairly simple to revert back to the original manufacturer software.

  1. First download the manufacturer provided firmware – this can be found on their website or with a quick Google search. If when downloaded it, it is within a Zip folder then unzip it.
  2. Do a 30/30/30 reset
  3. Plug your router into your computer using an Ethernet cable
  4. Log in to your DD-WRT by going to in your browser and entering your account name and password
  5. Navigate to Administration -> Firmware Upgrade
  6. Choose ‘Reset to default settings’ and use the Choose file button to locate the .bin file firmware you downloaded in step 1
    DDWRT Reset
  7. Click upgrade and wait until the process finalises, you will (hopefully) see the below image.
    DDWRT Reset Successful

Because each router is different some reversions might not be as straight forward and might require you to do some Googleing.


We have showed you the general path to setting up DD-WRT on your router, running a VPN service on it and the providers we recommend for you to use. Please however bare in mind that with so many DD-WRT builds, router types and VPN providers out there that if you have any problems Google and your service provider are your best friend .

Peter Selmeczy

I am an engineer by trade and tech geek by night, who's passionate about sharing his knowledge with the people. Find me on Google+.

11 responses to “How to set-up DD-WRT

    1. Hi Sam
      You will need to be a bit more specific. Which step are you on? What are you referring to as “start command”.

  1. hello Peter

    I read your article and i tell you its amazing  its really helpful , i have couple of questions if you can help me with
    1- does the DD-WRT flashed router type or brand effect the speed of VPN service ? i.e flashed a linksys E3200 with openvpn and set it up with account , the PC client was much faster than the router , unfortunately i had to cancel my account 🙁 the support team were very helpful and supportive which is a major plus but no luck , it works alright by 50% slower than PC client using the same server.

    2- In your opinion from your experience what is the fastest VPN service compatible with DD-WRT routers ? and in simple terms what is the downside in using PPTP protocol ? i’m using VPN to change my location for media streaming NOT for hiding my identity.

    Thank you

    1. Hi Tameem

      Thanks for the feedback.

      1. The biggest effect of speed when running VPN on a router is the CPU speed. The slower the router the slower the VPN connection. I have a 600MHz Asus RT-N66U which tops out at about 20Mbits/s download. The VPN doesn’t have much effect on it but of course if the VPN your using is slow on your computer it’s going to be slow on your router.
      2. As I said the VPN doesn’t effect speed much as much as the router processor. If you’re only looking to change location and are happy with no security then consider using a SmartDNS service, there is basically no speed loss no matter what device you’re using and it’s a lot easier to set-up (see VPN vs SmartDNS for more information).


      1. Thank you for your quick and efficient response

        If you could name a few routers with fast CPU to choose between as a preference would be great.

        1. We recently published our new best DD-WRT router list which covers this. Of those on the list the R7000 and AC1450 have the fastest CPU speeds.
          You can also look at DD-WRTs Supported Devices List and search using Ctrl + F for “@600” this will give you all the router that have 600MHz CPUs. The average CPU speeds above this are 680,800 and 1000.
          Make sure you look at the Flash/Ram size too so you can install the biggest and best DD-WRT builds.


          1. And just subscribed to tried other providers but they were the fastest , using the flash deal got 40% off Sweet deal

          2. Glad to hear, speed is dependent on a number of factors hence we always list 5 to chose from and test.

  2. Thanks for this article. It is easier to follow than the purely text based instructions usually provided on most sites.

    I would like to suggest an edit. The folks at stress repeatedly that you should always do a 30-30-30 reset before and AFTER flashing the firmware with dd-wrt.


Leave a Reply

Your email address will not be published. Required fields are marked *

Your Information will never be shared with any third party.
Enter your email address to receive your Beginner's Guide to Online Security for Free
You'll also receive great privacy news and exclusive software deals!
Enter your email to get the ebook:
Your Information will never be shared with any third party.
Enter your email address to receive your Ultimate Online Privacy Guide eBook!
You'll also receive great privacy news and exclusive software deals!
Enter your email to get the eBook:
Special VPN Deal
Exclusive Offer
Get a Special Deal - 72% OFF!
With a biannual subscription
Exclusive Offer for Visitors!
50% Off Annual Plan
Limited Time Only
Exclusive price of
Exclusive Offer
Get NordVPN for only
Exclusive Offer
Get NordVPN for only