Knowledgebase

Add to Favourites    Print this Article

How to setup DD-WRT Router for OpenVPN using TorGuard Startup Scripts

First, confirm that DD-WRT is supported on your router.Click here to search the DD-WRT website

Type the make and model of your routerand hit enter.
Search for the make and model of your router

To install DD-WRT using OpenVPN on your router, follow the step-by-step instructions

provided on the DD-WRT website.

Installing DD-WRT on your router should be done with care. 

Installing DD-WRT on your router can 'brick' your router 

To buy DDWRT OpenVPN Routers, Visit the TorGuard Store.

Once DD-WRT is installed, connect your computer to the router wirelessly or via Ethernet cable.

 

Type the router's local IP address into your web browser's URL bar and login into your router. 

By default, this is typically 192.168.1.1 (if you specified a different local IP address, please use that IP address).

note: If you are running more than one router on your network, you need to change the DDWRT router

to a different address, such as 192.168.2.1 to avoid IP conflict.

Enter the router's local IP address into your browser's address bar

 

After logging into the DD-WRT router web interface, please click on the 'Services' tab

.
DD-WRT Web interface

 

Click on the 'VPN' tab within the 'Services' tab.

Click on the 'VPN' tab within the Services' tab.

Next, under OpenVPN Server/Daemon click "enable".

This is needed to enable the OpenVPN status page. Click Apply Settings..

Click on the 'VPN' tab within the Services' tab.

Next, access the administration area, then select commands.

Download the TorGuard DD-WRT Startup Scripts from the link below:

http://torguard.net/downloads/TorGuardDDWRT.zip

Unzip the startup scripts and select the VPN server you wish to connect to by opening the file with a text editor.

Copy the entire contents of the selected startup script and paste into the command window below.

Remember to replace "USERNAME-HERE" and "PASSWORD-HERE" with your TorGuard VPN service login.

Click "Save Startup" then reboot your router.

That's it! Next we need to verify the OpenVPN connection by clicking the "status" then "OpenVPN" tab....

You can see the current status of OpenVPN under the Log area -

In our example, we can see the connection is valid by looking under "state" - CONNECTED:SUCCESS.

If you don't see any output in the log you may need to reboot your router, on occasion the status page won’t show your vpn status so its always best to verify your ip over at iplocation.net

DD-WRT Web interface

Congratulations! Now you are ready to use TorGuard using the OpenVPN protocol to encrypt your entire network and any connected devices using your DD-WRT router! Simply visit whatismyip.com to confirm that your DD-WRT router is connected to TorGuard . If you have any questions Contact our support team. We're available 24/7/365 and will respond quickly.

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

TROUBLESHOOTING DD-WRT

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. If your main router is currently 192.168.1.1 DD-WRT has to be in the same subnet, an example of ithis is: 192.168.1.51

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 8.8.8.8 and 8.8.4.4

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 LOGS:

If you are running an OpenVPN Connection you can create a Log which may enable you to see the problem - so 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 Your troubleshooting.




Yes No

Also Read