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 8.8.8.8
iptables -I PREROUTING -t nat -p tcp --dport 53 -j DNAT --to-destination 8.8.8.8


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.




Other Information

Poor Performance

We ensure our servers are NEVER overloaded, so this is not the issue if you are receiving poor performance; please get this out of your mind now ;-)

Your network, your ISP and their network have as much an impact on the speed you will receive as we do. Some of you will be connecting to a VPN server half way around the world, so degradation along the way is inevitable.


Quick tips

  • Experiment with Location 1, Location 2 (Site 1, Site 2) etc connections
  • Experiment with Option 1 UDP vs Option 2 TCP connections
  • If Faster does not connect, or is slow, try changing the port.
  • Use a network cable not wireless/wi-fi, this can often make the biggest difference.
  • Reboot router/computer
  • Clear all browser cookies/history/cache
  • If you are a VPN All or VPN UK & USA member and are using StreamVia to access streaming TV/video, please try SmartStream instead.



Location 1, Location 2 (Site 1, Site 2) etc
Each different VPN Site is a separate VPN location, you should experiment to see which works best for you. There may be a massive difference, some difference or no difference for you in speed. But you should experiment to see ;)


Option 1 UDP vs Option 2 TCP connections
Please ensure you experiment with both, whilst Option 1 has the capability of being faster than Option 2 there are some cases when Option 2 can actually work out best for you.


Change Port
If your ISP rate limits certain ports (to try to disrupt the VPN) you can try adjusting the port number to see if you can get around this. Click to see how to change the port.


Browser cache/cookies
Always clear your browser cache/cookies/history after connecting VPN, you need to reset the browser for your change in location. Failure to do so can result in poor performance.


Wi-fi vs wired ethernet
Using a wired connection instead of wireless often has the biggest impact on speed. The best speed and reliability with always be seen when using a network cable rather than wireless, wireless networks cause latency which causes the speed to drop. If you are having speed issues, please try with a network cable rather than wireless.


Your broadband
Just because you have XYZ speed broadband, does not mean you should expect this speed over a VPN. All networks deteriorate in speed the further away you are, so whilst someone connecting in the UK or a country close by will be able to achieve close to maximum speed to a UK server, those in Australia will not.

Also, if you or someone else is heavily using the broadband connection (even if not over the VPN) then you will notice a performance drop. For best performance ensure others are not downloading/streaming on the same connection as you.


Reboot everything
Try restarting both your computer and your broadband router, sometimes this can work wonders!


Alternative DNS
For best performance - especially from China, UAE etc - we recommend that you configure alternative DNS servers on your computer, as some countries will filter DNS which can cause problems for your connection ie inability to connect at all, or unstable connections with frequent disconnects. You need to configure these on your wireless or ethernet adapter - ie the physical network interface you use to connect to your network - details are contained in the below links:




Page Tools