Setting up an OpenVPN connection on a DD-WRT router

The following instructions will guide you through a configuration of an OpenVPN connection on a DD-WRT compatible router. This is the recommened connection for DD-WRT compatible routers connecting to the VPNUK service. There are hundreds of routers compatible with DD-WRT, please check the router database on the DD-WRT website for more information.

IMPORTANT NOTICE: Setting up DD-WRT on a compatible router is not for novice users, this setup does require a certain amount of experience and knowledge of how internal networks operate. It is not possible for VPNUK to assist in the flashing of routers or the installation of DD-WRT firmware. It is also not possible for VPNUK to assist in the setup of the VPNUK service, nor can we be held responsible for damage caused by clients configuring uncompatible routers or flashing incorrect firmware. If you choose to setup your VPNUK connection over DD-WRT we have very limited support available and we are unable to assist remotely or through our Live Help service. Please only install official DD-WRT firmware from the DD-WRT website onto compatible routers. Before you attempt to configure your router please setup an OpenVPN connection on your computer to ensure the account is working.

If you do choose to configure your connection through DD-WRT, please note, that it is still largely unsupported and can be problematic. If you have any problems we only offer basic troubleshooting assistance through our ticketing system, we also have a troubleshooter at the bottom of this page. You should be prepared to lose internet connectivity and be ready and know how to return the router to it's default settings.

Prerequisites: Setting up the DD-WRT Router
If you are setting up your OpenVPN connection as an Access Point the connection should pass from the WAN port on the DD-WRT router to an available LAN port of your main router and the DD-WRT router should be running on a different IP to that of your main router (For example, if your main router is running on - DD-WRT could be Before you continue please ensure you have configured the DD-WRT router on your local area network and sure the internet connection is passing through the router correctly.

Version Check

Login to your router with DD-WRT version v24-sp2 or higher on it.

1. Services

Click on the 'Services' tab

2. VPN Tab

Click onto the 'VPN' tab from the 'Services' sub menu.

3. OpenVPN Service Check

Check to see that you have the 'OpenVPN Client' installed on the DD-WRT firmware. Please do not enable it, we just need to check that its there. If the OpenVPN Client is not listed please double check you have the latest DD-WRT firmware release.

4. Administration

Click onto 'Administration' in the top menu bar.

5. Commands

Click onto 'Commands' from the 'Administration' sub menu.

6. Insert the command

Please click here to download your pre-configured config file. Once downloaded, copy and paste the contents of the file into the 'Commands' text area box, then click onto 'Save Startup'.

7. Management

Click onto the 'Management' tab from the 'Administration' sub menu.

8. Reboot Router

Scroll down to the very bottom of the page and click onto the 'Reboot Router' button.

Screencast Tutorial

Troubleshooting DD-WRT Issues

There are many reasons why a DD-WRT connection may fail to connect correctly. The most common issues are down to little errors like the incorrect VPNUK login username, password and server details, even having the incorrect time and date can impact on the connections.

Here is a checklist of common causes and fixes.

1. Try setting 'Use DNSMasq for DNCP', 'Use DNSMasq for DNS' and 'DHCP-Authoritative' to enabled as well as disabled.

2. Ensure the IP of the DD-WRT router is not conflicting with your main router.

3. Ensure the DD-WRT is connected to any other router from its WAN port.

4. You could also try setting the DD-WRT router to a 'Static' connection from the 'Basic Setup' page.

5. Go to your LAN settings and manually change your IP Address, Subnet Mask and Gateway so its pointing to the DD-WRT router. You may also need to change the DNS servers, if you do not want to use your ISPs DNS you can use Google DNS and

6. If you have setup a PPTP connection try adding: mppe required,no40,no56,stateless into the 'Additional PPTP Settings' text area.

7. If you have setup a PPTP connection please ensure the PPTP passthrough is enabled from Security -> VPN Passthrough.

8. Try disabling the firewalls on your routers or modems, these can quite often cause connection issues. Once its determined that a firewall is not causing the problem it can always be re-enabled.

9. MTU settings can quite often cause problems, you could try lowering the MTU settings by adding this command on a new line (below verb 3) on your OpenVPN configuration file: tun-mtu 1100

10. Its very important that your router has the correct time and date.

OpenVPN Log Instructions

If you are running an OpenVPN Connection you can create a Log which may enable you to see the problem, or you can open a support ticket and send us the details.

1. Add the following after 'verb 3' in your OpenVPN Config startup script:

log /tmp/openvpn.log

2. Reboot you router, wait for about 5 minutes and then run the following command (Run Command) from the command text area in administration (same place as the OpenVPN config file):

ln -s /tmp/openvpn.log /tmp/www/openvpnlog.html

3. Go to the DD-WRT index page and add: /user/openvpnlog.html to it so it looks something like: http://192.168.x.x/user/openvpnlog.html

## If any problems persist please open a support ticket and we will be able to assist you with our troubleshooting questionaire.

Additional Notes

Switching servers
If you ever decide to switch servers it is very easy to edit the server IP.
1. Make a note of the server IP.
2. Login to the DD-WRT admin interface.
3. Go to Administration -> Commands.
4. Go to the bottom of the OpenVPN command and click onto the 'Edit' button,
5. Scroll up to the commands text box at the top.
6. Change the IP on line 15 so it matches the new server IP.
7. Save the command by clicking the 'Save Startup' button.
8. Reboot DD-WRT Router.

Switching Protocols to TCP
Follow this guide if you have to switch protocols.
1. Login to the DD-WRT admin interface.
2. Go to Administration -> Commands.
3. Go to the bottom of the OpenVPN command and click onto the 'Edit' button.
4. Scroll up to the commands text box and go to line 15.
5. Change the port from 1194 to 443 and udp to tcp.
6. Save the command by clicking the 'Save Startup' button.
7. Reboot DD-WRT Router.

Editing your Password
If you ever decide to change your password follow this guide.
1. Login to the Cient CP and change the password to one of your choice
2. Login to the DD-WRT admin interface.
3. Go to Administration -> Commands.
4. Go to the bottom of the OpenVPN command and click onto the 'Edit' button.
5. Scroll up to the commands text box at the top.
6. Go to line 71 and change the current password to your new password.
7. Save the command by clicking the 'Save Startup' button.
8. Reboot DD-WRT Router.

Contacts & Social
Correspondence Address:
VPNUK Limited
Office B0245
265-269 Kingston Road
SW19 3NW
United Kingdom

Telephone Contacts
INUM: +883 510 001 193 452
UK: +44 203 608 6599
USA: +1 702 9240633
Spain: +34 902 848 027

Social Media
Join the discussions with VPNUk on Twitter Follow us on Facebook Follow us on Google Plus Watch out setup tutorials on the VPNUK You Tube channel Connect with VPNUK on Linkedin Connect with VPNUK on instagram

UK - USA - Switzerland
Germany - Spain
Australia - Canada
Netherlands - France
Italy - Hong Kong
Denmark - Ireland
Sweden - Russia
Luxembourg - Poland
Singapore - Iceland
Panama - Egypt
Israel - India - Japan


Sign up to our newsletter and we will keep you up to date with all the latest news, reviews and service updates.

Static VPN IP Accounts
Dynamic VPN IP Accounts
Online TV Film & Sport
SmartDNS Services
Live TV Service
Online Security
Geo Location
Personal Firewall

Copyright © VPNUK Limited 2017 | Registered in Belize Company No 144643