User Tools

Site Tools


DD-WRT - OpenVPN


Here you can find setup information for your chosen VPN and also how to fix any problems you might encounter.

You can use the Table of Contents on the right hand side of this window to navigate between the different sections.


OpenVPN Test

Step 1
Go to Administration, then Commands


Step 2
Enter which openvpn in the box


Step 3
Click the Execute command button


Step 4
Verify that you receive a path for OpenVPN, such as /usr/sbin/openvpn


Step 5
If you do not receive a path for OpenVPN your current firmware does not have OpenVPN included, you need to upgrade to either the VPN or Mega DD-WRT firmware, if the device flash etc allows. Please consult the DD-WRT website for further information.




Install Guide

Required Information

Step 1
Download the OpenVPN script you wish to use, we would recommend you first install OpenVPN on a computer to determine the connection that is best for you to use. Please note, these scripts require a current version of DD-WRT with OpenVPN 2.4, if you're running on older release please email us for compatible scripts.




Step 2
Retrieve the Server Address for the VPN you want to connect to, you will need this later:




Step 3
Retrieve your VPN username and password, if you are a new member this is contained in the StreamVia Account Information email you received after ordering.




Initial Router Configuration

Step 1
Please factory reset DD-WRT first, this is strongly recommended to prevent any potential conflicts


Step 2
Connect the DD-WRT WAN port to the LAN port on your existing broadband router/modem


Step 3
Configure the router as you would normally, WPA/WEP keys for wireless etc


Step 4
Ensure you can browse the internet normally, via the DD-WRT router, if not please troubleshoot this first


Step 5
Setup → Basic, for Static DNS 1 and 2 enter the following, 8.8.8.8 and 8.8.4.4


Firewall NAT Config

Step 1
Administration → Commands


Step 2
Enter the below and click 'Save Firewall'

iptables -t nat -I POSTROUTING -o tun0 -j MASQUERADE
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 
iptables -I PREROUTING -t nat -p udp --dport 53 -j DNAT --to-destination 1.1.1.1
iptables -I PREROUTING -t nat -p tcp --dport 53 -j DNAT --to-destination 1.1.1.1


OpenVPN Setup

Step 1
Open the StreamVia DD-WRT OpenVPN script that you wish to use in notepad, fairly near the top edit USERNAME and PASSWORD replacing with your VPN username and password, ensure there are no white spaces on the ends of lines etc.


Step 2
Edit SERVER_ADDRESS in the same script and replace with the address of the server you wish to use, REMOTE must stay at the beginning.


Step 3
Copy the entire script from notepad and copy to the clipboard


Step 4
Paste into Administration → Commands


Step 5
Click 'Save start up'


Final Steps

Step 1
Reboot the router


Step 2
It may take 1-2 minutes to complete after reboot, the script waits 60 seconds after boot for attempting to connect to let things settle.




Page Tools