Close this search box.

How to Set Up PrivateVPN on a Router?

We are reader supported and may earn a commission when you buy through links on our site. Learn more.

The best way to install PrivateVPN on your router is by downloading its OpenVPN configuration files for your router type and setting it up in the router’s admin panel. However, you must ensure to have a VPN-compatible router before getting started.

After you install PrivateVPN on your router, all devices connected to it, even those that PrivateVPN doesn’t have an app for, will have their internet connection encrypted.

So, if you’re ready to start now:

Does My Router Support PrivateVPN?

Most cheap or old routers don’t support the installation of a third-party VPN. 

But most higher-end routers do support the installation out of the box.

The router’s manual should confirm if your router supports a third-party VPN installation. Or you can also verify via Google if your router supports VPNs.

You can flash it and install open-source firmware to enable this feature if it doesn’t.

Setting up PrivateVPN on a Router

I’ll use three router types to demonstrate how to set up PrivateVPN on a router: DD-WRT (using a Linksys E1200 model), Tomato Router (on a Linksys E1550 model), and an Asus router (for VPN-compatible routers).

How to Set Up PrivateVPN on a DD-WRT Router?

PrivateVPN can’t be installed on all DD-WRT routers. Thus, confirm from the DD-WRT router database that it supports your router.

After confirming it does, here’s how to flash your router and install DD-WRT firmware:

  1. Select your router from the DD-WRT router database results.
  2. You’ll see two files named “Flash” and “Mega.” Download one file from each section.
router database
  1. Perform a hard reset of your router by pressing the “Reset” button for 30 seconds.
  2. Remove the router’s power cable from the outlet without releasing the “Reset” button. Keep holding the button for another 30 seconds.
  3. While holding the “Reset” button, plug the power cable back into the outlet. Keep holding the “Reset” button for another 30 seconds.
  4. Open your router’s settings page in your browser and click “Administration.” The settings page is usually found at “” or “”
router settings administration
  1. Go to your router’s settings tab and click “Firmware Upgrade.”
firmware upgrade
  1. Select the file that ends with “mini” and upload it.
file with mini
  1. Click “Start Upgrade.”
upgrading file
  1. Allow some time for the DD-WRT firmware to be installed. Your router will restart during this process.
  2. Once the firmware has been installed, and the router has rebooted, open the router’s settings page again.
  3. Click “Administration.”
administration tab
  1. In the username, type “Root” or “Admin.” For the password, type “admin.”
log in page
  1. Click “Firmware Upgrade.”
click firmware upgrade
  1. Under “Please select a file to upgrade,” click “Choose file.”
choose file
  1. Now select the “Mega” file you already downloaded.
mega file
  1. In the router menu options, click “Upgrade.”
router menu options
  1. Allow time for the firmware to be updated on your router, and then restart.
  2. Perform a hard reset again and open your router’s settings page. Set up a new username and password, and log in with the new username and password.

Here’s how to install PrivateVPN on DD-WRT:

  1. Get a PrivateVPN subscription. You can save more with these HUGE discounts.
  2. Open your router’s dashboard, click “Setup,” then “Basic Setup.”
basic setup
  1. Under “Network Address Server Settings (DHCP),” enter “” in the “Static DNS 1” field.
  2. Under “Static DNS 2,” enter “”
static dns 2
  1. Click “Save,” followed by “Apply Settings.”
apply settings
  1. Click “Administration,” then “Commands.”
  1. Copy the PrivateVPN DD-WRT OpenVPN script from here.
  2. Go back to your router’s settings page and paste the script under the “Commands” text box.
  3. Scroll back to the top, and edit the following lines:
    1. Username = *Enter your PrivateVPN username here*
    2. PASSWORD = *Enter your PrivateVPN password here*
    3. REMOTE_SERVERS = *Select the server address from this list and copy-paste the information here.*
command shell
  1. Click “Save Startup.”
save startup
  1. Click “Management” and select “Reboot Router.”
reboot router
  1. Allow some time for the VPN to be installed.

How to Set Up PrivateVPN on a Tomato Router?

Tomato Router is another free, open-source firmware for routers. Before installing PrivateVPN on your router, confirm if the Tomato firmware supports your router.

Here’s how:

  1. Go to the Tomato website.
  2. Click “Help” and select “Router List.”
tomato router list
  1. Check if the Tomato firmware is available for your router. If supported, copy the version number.
version number
  1. Click “Download,” then “Tomato Firmware.”
tomato firmware
  1. Click on the firmware number that corresponds with the one given to your router. For our example router, the firmware number was “K26RT-N.”
  1. Select the latest available release.
latest available release
  1. Select your router.
select router
  1. A list of firmware will be available for download. Download the one with the file name ending in “Mega.”
file name with mega
  1. Once the Zip file has been downloaded, extract it.
  2. Perform a hard reset as shown in the previous solution.
  3. Open your browser and enter your router’s IP address/admin login page.
  4. Continue to the setup page.
  5. Enter the username as “admin” and the password as “admin.”
username and password
  1. Click “Administration,” then “Firmware Upgrade.”
administration firmware upgrade
  1. Click “Browse” and upload the file that you downloaded.
browse file
  1. Click “Start Upgrade.”
start upgrade
  1. Allow some time for the firmware to be installed on your router.
  2. Perform another hard reset.

Once that’s done, here’s how to install PrivateVPN on the router:

  1. Buy a PrivateVPN plan. Here’s a one-time discount to save more.
  2. Open your router’s configuration window by entering its IP address.
  3. In the left-side menu of your router’s configuration window, select “VPN Tunneling.”
vpn tunneling
  1. Select “OpenVPN Client.”
  2. Click on “Client 1” and select “Basic.”
openvpn client configuration
  1. Tick the checkbox for “Start with WAN.”
start with wan
  1. Click on the “Interface Type” drop-down and select “TAP.”
interface type
  1. Change “Protocol” to “UDP.”
udp protocol
  1. Select a server from this list and copy the server address.
  2. Paste the server address in the “Server address/Port” textbox.
  3. Set the port value to “21000.”
service address
  1. Change “Firewall” to “Automatic” and “Authorization Mode” to “TLS.”
firewall and authorization mode
  1. Uncheck “Username Authen. Only” and “Server is on the same subnet.”
  1. In the “Username” and “Password” text boxes, enter your PrivateVPN account’s username and password.
  2. Select the checkbox “Create NAT on tunnel.”
create nat on tunnel
  1. Click “Advanced.”
advanced settings
  1. Change the “Poll Interval” to 0.
  2. Uncheck “Redirect Internet traffic” and “Verify Server Certificate.”
poll interval
  1. Change “Accept DNS Configuration” to “Strict.”
  2. Change “Encryption Cipher” to “Use Default.”
  3. Change “Compression” to “Adaptive.”
strict use default adaptive
  1. Type “comp-lzo” under the “Custom Configuration” textbox.
custom configuration
  1. Click “Keys” and enter or paste the following text under the “Certificate Authority” textbox:
					-----BEGIN CERTIFICATE-----

certificate authority
  1. Finally, click “Save,” then “Start Now.”
start now button

How to Set Up PrivateVPN on ASUS/Netgear/Linksys Routers?

Here’s how to install PrivateVPN on a router such as Asus, Netgear, Linksys, and others that support the installation of a third-party VPN out of the box.

For this step-by-step guide, we’re using the Asus router as an example:

  1. Get a PrivateVPN subscription if you don’t have one already.
  2. Open your router’s settings page and click “VPN” on the left-side menu.
advanced settings vpn
  1. Click “VPN Client,” followed by “Add profile.”
vpn client tab
  1. Click “L2TP” and open the tab.
  1. Go to this PrivateVPN server list, select the server you want to install on your router, and copy its address.
  2. Paste the server address under the “VPN Server” text box.
vpn server textbox
  1. Enter your PrivateVPN account’s username and password under the username and password text box.
privatevpn login credentials
  1. Click “OK.”
choose ok
  1. Click “Activate” to turn on the VPN on your router.
activate vpn on router
Interesting Reads:

Enjoy PrivateVPN on Unlimited Devices

If your router supports VPN installation out of the box, you can install PrivateVPN easily. Otherwise, you’ll need to flash it and then install a VPN.

Once installed, you can access geo-blocked content on Netflix and other streaming platforms, bypass IP bans, and more. Likewise, you’ll encrypt the internet connection of all the connected devices simultaneously without using up more than one of the ten connections that PrivateVPN provides.

If you don’t already have a subscription to PrivateVPN, try it out today with these huge discounts!

PrivateVPN logo
Get a juicy 85%+ discount!
** For Limited Time Only **
💥 Exclusive May Discounts 💥
Surfshark logo
PrivateVPN logo
PrivateVPN logo
PrivateVPN devices
Our partner, PrivateVPN, offers an exclusive discount for a limited time! Don't miss out on the chance to save extra money.
Or Try PrivateVPN for FREE