Here is a tutorial on how to connect a DD-WRT router to LimeVPN servers via the OpenVPN GUI client:

1. In the DD-WRT Administrative Interface, navigate to Setup > Basic Setup. Under Network Address Server Settings (DHCP), set these DNS addresses:

Static DNS 1 =

Static DNS 2 =

Static DNS 3 = (default)

Use DNSMasq for DHCP = Checked

Use DNSMasq for DNS = Checked

DHCP-Authoritative = Checked

Then, Save and Apply settings.

If you’re setting up two routers, you should change the second router Local IP address to be different than the main router’s. (In this case main router’s IP is, while the one we’re connecting to LimeVPN server is accessible via

2. Navigate to Setup > IPV6. Set IPv6 to Disable, then Save & Apply Settings.

(this is a recommended step to make sure you get no IP leaks)

3. Navigate to Service > VPN. Under OpenVPN Client, set Start OpenVPN Client = Enable, to see the options necessary for this configuration. Then set the following:

Server IP/Name = Use a server of your choice. You can check the list of servers from 

Port = 1194

Tunnel Device = TUN

Tunnel Protocol = UDP

Encryption Cipher = AES-256-CBC

Hash Algorithm = SHA-512 (note: If SHA-512 does not work, select SHA-1)

User Pass Authentication = Enable

Username, Password = Your LimeVPN credentials

Note: If the Username and Password fields are missing, fill in the remaining fields and proceed to step 3.1

Advanced Options = Enable (this will enable additional options)

TLS Cipher = None

LZO Compression = Yes

NAT = Enable

The options not mentioned in this guide should be kept with default values.

3.1. (Optional, depending on step 3.) If the Username and Password fields are missing, go to Administration > Commands, and enter this code:

YOURPASSWORD" > /tmp/openvpncl/user.conf
/usr/bin/killall openvpn
/usr/sbin/openvpn --config /tmp/openvpncl/openvpn.conf --route-up /tmp/openvpncl/ --down-pre /tmp/openvpncl/ --daemon

Replace YOURUSERNAME and YOURPASSWORD with your respective LimeVPN account credentials. Click Save Startup, and return to the previous VPN tab.

4. In Additional Config box either enter or copy/paste these commands:

remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0

#log /tmp/vpn.log

#Delete # in the line below if your router does not have credentials fields and you followed the 3.1 step:
#auth-user-pass /tmp/openvpncl/user.conf

5. Download the CA and TLS certificates here.

Double click on the downloaded file and open any server file you wish to connect to in a notepad, The notepad file consists of both the CA Certificate as well as the TLS key.

Note : Please choose the certificate mentioned as “ Destination server “ 

6. In the folder, open the CA.crt file of the server you chose to use with a text editor, such as Notepad.

7. Copy its contents into the CA Cert field. Be sure the entire text gets pasted in, including  

-----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.

8. Open the TLS.key file of the server you chose to use with a text editor, such as Notepad.

9. Copy its contents into the TLS Auth Key field. Be sure the entire text gets pasted in, including

-----BEGIN Private key ----- and -----END Private key----- lines.

10. After entering all this data, Save and Apply Settings.

11. To Verify the VPN is Working, Navigate to Status > OpenVPN

Under State, you should see the message: Client: CONNECTED SUCCESS.

12. To create a kill-switch, you can go into Administration > Commands, and enter this script:

WAN_IF=nvram get wan_iface
iptables -I FORWARD -i br0 -o $WAN_IF -j REJECT --reject-with icmp-host-prohibited
iptables -I FORWARD -i br0 -p tcp -o $WAN_IF -j REJECT --reject-with tcp-reset
iptables -I FORWARD -i br0 -p udp -o $WAN_IF -j REJECT --reject-with udp-reset

Then select Save Firewall, Go into Administration > Management > Reboot router.

Did this answer your question?