Return to protonvpn.com Facebook   Twitter   Reddit   Instagram   Mastodon   ProtonMail
Support Center / How to setup ProtonVPN on a Tomato router

How to setup ProtonVPN on a Tomato router

A step-by-step guide to setup ProtonVPN on your Tomato router.

ProtonVPN can be set up on your Tomato powered router to automatically connect to a ProtonVPN server available to your subscription whenever the internet connection is established. Below is a step-by-step guide to set up your ProtonVPN router. These changes are made in the web configuration panel of your router which you can access by visiting the local IP of your router from your web browser. The two most common, the default local IP’s that most routers have are 192.168.1.1 or 192.168.0.1.

Opening the Router configuration panel

  • Open your browser and enter 192.168.1.1 or 192.168.0.1 in your browser bar. If these don’t work, you can find the default IP, username, and password in your router’s User Manual.

DNS Settings (connecting via OpenVPN protocol)

Start by configuring your DNS server requests to use ProtonVPN DNS server to prevent DNS leaks (Note, once this is set, DNS queries will not resolve unless you are successfully connected to ProtonVPN in the later stages)

  1. In the left menu, under Basic -> Network
  2. In the DNS 1 field enter the following: 10.8.8.1
  3. In the DNS 2 field enter the following: 8.8.4.4

 

Openvpn Basic router settings (connecting via OpenVPN protocol)

  1. On menu located on the left side of the screen click on the VPN Tunnelling tab and then click on OpenVPN Client tab.
  2. As shown in the screenshot, set the following options:
    Start with WAN – Check the box.
    Interface Type – TUN.
    Protocol – Choose UDP.
    Server Address/Port – Enter server address in the first field and port in the second one – 1194 to you set Protocol to UDP.
    Use configuration files name as server address field(Example in the screenshot).
    Firewall – Automatic.
    Authorization Mode – TLS.
    Username/Password Authentication – Checked. Enter your OpenVPN username and password in the newly shown fields from your account page here – https://account.protonvpn.com/settings
    Username Authen. Only – Unchecked (default).
    Extra HMAC authorization (TLS-AUTH) – Choose Outgoing (1) from the drop-down list.
    Create NAT on tunnel – Checked.

Tomato routers that don’t have any fields for entering OpenVPN credentials:

Some Tomato routers do not have any fields for entering OpenVPN credentials. If this is your case:

  • Go to Administration -> Scripts and enter these lines into the Init field where you should change username and password to your ProtonVPN credentials:
    echo username > /tmp/password.txt
    echo password >> /tmp/password.txt
    chmod 600 /tmp/password.txt

 

For additional config, please enter these:

tls-client
remote-cert-tls server
remote-random
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
auth sha512
comp-lzo no

Keys settings and starting the VPN connection (OpenVPN Client Configuration)

  1. Proceed by clicking on Keys tab.
  2. Download the ProtonVPN configuration files and extract them.
  3. Find a configuration file for the server you were setting up and open it (in this case de-03.protonvpn.com.udp1194.ovpn).
    • Static key – in this field copy and paste text from <tls-auth> to </tls-auth> block.
    • Certificate Authority – in this field copy and paste text from <ca> to </ca> block.
      It should look like this: 
  4. Confirm and save all changes by clicking on Save button at the bottom of the settings page.
  5. To establish a connection, click on Start Now button. In order to check if you have connected successfully please visit the Status page.

 

Setting up KillSwitch on Tomato router

  • Navigate to Administration -> Scripts and under Firewall please type in:
    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
  • (Every client in LAN will loose internet connection in case of VPN drop.)
    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
  • (Only specified IP address will loose internet access in case of VPN drop.)

 

 

Related Articles: 

How to setup ProtonVPN on DD-WRT Routers

How to setup ProtonVPN on Windows

How to setup ProtonVPN on Mac

How to setup ProtonVPN on Linux

 

 

 

Post Comment

10 comments

  1. Justin

    Running MacOS, and I just flashed my router. How do you get the CA and Static Keys from the downloaded server config to paste in the “Keys” section? I try opening it and it just asks what program I want to use to open it.

  2. ProtonVPN Team

    Hello. You have to open those files with a text editor software. There are many online that you can use for example : Sublime Text 3

  3. bugimen

    Hi there! Should I add “keealive 10 60” to client config -> Advanced -> Custom Configuration box?

  4. ProtonVPN Team

    Hello Bugimen. This setting is pushed from the server side so it does not matter what you type in the config.

  5. linksys tech support

    ProtonVPN gives more security to a router. Your tips are very informative and anyone can set VPN in a very simple way. Nice article for the user.

  6. Fred

    You say

    In the left menu, under Basic -> Network
    In the DNS 1 field enter the following: 10.8.8.1
    In the DNS 2 field enter the following: 8.8.4.4

    The IP 8.8.4.4 connects to Google DNS servers which I don’t want to use. If I remove that entry, and leave only the 10.8.8.1 IP, I get no DNS service. If I add a different public DNS service e.g. openDNS 208.67.222.222 I get DNS services back again. This indicates that protonvpn’s DNS server at 10.8.8.1 is not working for me. What do I need to do to get protonvpn to provide me with DNS services. Thanks.
    (Linksys WRT54G with tomato firmware ver.1.28)

  7. ProtonVPN Team

    Hello Fred, each of our servers has an integrated DNS server inside them. OpenDNS and Google Domain name servers are dedicated, we do not provide a separate Domain Name Server yet. When you connect to a VPN server, DNS should be fetched automatically from it. If you are experiencing DNS leaks, please write us an e-mail via https://protonvpn.com/support-form and we will do some extensive troubleshooting.

  8. User

    Please fix the wrong How to: https://protonvpn.com/support/vpn-tomato-router

    Still no VPN Connection by useing 10.8.8.1 as only one DNS server.
    No problems to get VPN connection ba useing good known DNS server like 8.8.4.4 or other.

    Proton VPN service mean by email:
    – proton VPN dont provide DNS server on this time
    – 10.8.8.1 are no DNS serever

  9. ProtonVPN Team

    Hello, If you are using free servers, then you have to use 10.8.0.1 in the DNS settings, if not, 10.8.8.1 will work and will provide the DNS servers of the VPN server.

  10. Tatibyte

    Thanks guys, works fine the connection! thanks for all!

Leave a Reply

Your email address will not be published. Required fields are marked *

Don't find your answer? We're happy to help you!     Contact Our Support Team

Secure Your Internet Today

Get ProtonVPN