When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Security

How to Configure and Use NordVPN on Tomato

Written by Shummas Humayun
Last updated May 18, 2024

Tomato is a highly popular router firmware due to its user-friendly interface and excellent compatibility with OpenVPN. If you have a router running Tomato custom firmware, you can configure the NordVPN OpenVPN client on your router to get a secure Web connection on all connected devices.

If your router runs on another firmware, you can also flash it with Tomato. However, it's a very complex process that requires some level of technical expertise, so we won't get into that. To make things easier, we suggest getting a pre-flashed Tomato router.

In this article, we will provide a step-by-step guide to teach you how to configure and use NordVPN on Tomato.

How to Configure NordVPN on Tomato

To setup NordVPN on Tomato, you need to add your preferred server's OpenVPN configuration file in Tomato's settings. Here's a detailed guide:

1. Subscribe to NordVPN by visiting its website on any Web-connected device.

2. Open NordVPN's server tool and choose your preferred server.

3. Click on the 'Download config' button next to OpenVPN (UDP or TCP) to download the .ovpn file.

NordVPN server hostname

4. Open your NordVPN account dashboard and choose 'NordVPN.'

5. Click on the 'Set up NordVPN manually' button.

6. Enter the verification code received in your NordVPN-associated email inbox.

7. Copy your Username and Password under 'Service credentials (manual setup).'

NordVPN service credentials

8. Open the Tomato control panel by visiting 192.168.1.1 or 192.168.0.1 in your browser and logging in.

9. Click on 'VPN Tunneling' from the left side menu and choose 'OpenVPN Client' from the drop-down. 

10. Now, set the below options as mentioned: 

OpenVPN Client Configuration on Tomato
Note

Some Tomato routers don't provide dedicated fields for entering OpenVPN configuration. In that case, navigate to Administration> Scripts and enter the command below into the Init field. [Replace the 'username' and 'password' with your credentials.]

echo username > /tmp/password.txt
echo password >> /tmp/password.txt
chmod 600 /tmp/password.txt

11. Now, click the Advanced tab and enter the below configuration:

remote-cert-tls server
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping-timer-rem
reneg-sec 0
auth sha512
#log /tmp/vpn.log
#Delete `#` in the line below if your router does not have credentials fields
#auth-user-pass /tmp/password.txt
OpenVPN custom configuration on tomato

12. Open the .ovpn configuration file you downloaded earlier from NordVPN's website with a text editor.

13. Next, under the 'Keys' tab, enter the 'details' as mentioned below:

NordVPN key setup on Tomato

14. Click the Save button next and choose Start Now to establish a connection. 

15. You can visit the Status page to confirm whether or not you've successfully set up a connection. 

16. To prevent the DNS leaks, enter the below details under 'Basic' > 'Network' > 'WAN Settings:'

NordVPN DNS server setup

17. To set up NordVPN Kill Switch on your router, navigate to 'Administration' > 'Scripts.'

18. Under Firewall, paste any of the following scripts depending on your requirements:

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
WAN_IF=`nvram get wan_iface`
iptables -I FORWARD -i br0 -s `ip address` -o $WAN_IF -j REJECT --reject-with icmp-host-prohibited
iptables -I FORWARD -i br0 -s `ip address` -p tcp -o $WAN_IF -j REJECT --reject-with tcp-reset
iptables -I FORWARD -i br0 -s `ip address` -p udp -o $WAN_IF -j REJECT --reject-with udp-reset

Final Thoughts

While the configuration process may seem lengthy and complex at first, it's actually very simple and straightforward. And the instructions will be more or less the same for all Tomato routers. Once you've configured it, you will be able to protect unlimited devices with NordVPN.

Since NordVPN supports a wide range of platforms, you can set up NordVPN on additional devices that aren't connected to your router. While you won't be able to get unlimited simultaneous connections without a router, you can still connect up to 10 devices at any given time via its native apps.

We hope that this article helped you successfully configure NordVPN on Tomato. Feel free to share your experience with us in the comments below. Thanks for reading!



For a better user experience we recommend using a more modern browser. We support the latest version of the following browsers: For a better user experience we recommend using the latest version of the following browsers: