How to Set Up a VPN on Your Router

Step-by-step guide to install a VPN on your router. Covers OpenVPN and WireGuard setup on ASUS, TP-Link, and DD-WRT routers with speed impact analysis and protocol comparison.

advanced

A VPN on your router encrypts all internet traffic for every device on your network. Instead of installing VPN apps on each phone, laptop, and tablet individually, the router handles the encrypted connection at the network level. Smart TVs, game consoles, and IoT devices that cannot run VPN software get protection automatically.

The tradeoff is speed. Router processors are less powerful than phone or PC processors, so encryption takes a bigger toll. Choosing the right protocol and router hardware minimizes this impact.

Decide Between OpenVPN and WireGuard

OpenVPN and WireGuard are the two protocols worth considering for a router VPN. Your choice affects speed, compatibility, and setup complexity.

OpenVPN has been the standard for over two decades. Nearly every VPN provider supports it, and every VPN-capable router can run it. The configuration involves importing an .ovpn file from your VPN provider. OpenVPN uses more CPU than WireGuard, which means slower speeds on routers with weak processors. On a typical consumer router, expect 30-50% speed reduction compared to your raw internet speed.

WireGuard is the newer protocol that runs with significantly less overhead. It uses about 4,000 lines of code compared to OpenVPN’s 70,000, which translates to a smaller attack surface and faster processing. On the same router hardware, WireGuard typically delivers 40-60% better throughput than OpenVPN. The drawback is limited native router support. Only recent ASUS firmware and custom firmware like DD-WRT and OpenWrt include WireGuard.

If your router supports WireGuard, use it. If not, OpenVPN remains a solid and reliable choice. Both protocols are secure and trusted by the security community.

Check if Your Router Supports VPN Client Mode

VPN support varies wildly between router brands and models. Before purchasing a VPN subscription or attempting setup, verify your router can act as a VPN client.

ASUS routers with ASUSWRT firmware have the best native VPN support among consumer brands. Models like the RT-AX86U, RT-AX88U, and ZenWiFi series include both OpenVPN and WireGuard client options built into the admin panel. Log in at 192.168.1.1 and check whether VPN appears in the left sidebar under Advanced Settings.

TP-Link routers have limited VPN client support. Some newer Archer models support OpenVPN client through the admin panel, but many popular models do not. Check TP-Link’s specifications page for your model. If VPN client is not listed, you will need custom firmware.

Netgear consumer routers generally do not support VPN client mode in stock firmware. The Nighthawk Pro Gaming XR series is an exception. Standard Nighthawk models only support VPN server mode, which is a different feature.

Linksys routers do not include VPN client in stock firmware. Older WRT models (WRT1900AC, WRT3200ACM) are popular choices for DD-WRT or OpenWrt because of their strong hardware and open-source firmware support.

If your router does not support VPN client mode natively, you have two options: flash custom firmware (covered later in this guide) or buy a VPN-compatible router. ASUS routers offer the best out-of-box experience.

Set Up a VPN on ASUS Routers

ASUS routers provide the smoothest VPN client setup of any consumer brand. Log in to your router admin panel at 192.168.1.1 or router.asus.com with your admin credentials.

In the left sidebar, click VPN. Select the VPN Client tab at the top. Click Add Profile. You will see tabs for PPTP, L2TP, and OpenVPN. Select OpenVPN.

Enter a description (the name of your VPN provider or server location). Enter your VPN provider’s username and password. Click Choose File and upload the .ovpn configuration file you downloaded from your VPN provider’s website. Every major provider (NordVPN, ExpressVPN, Surfshark, PIA) offers .ovpn files on their website or in their account dashboard.

Click OK to save the profile, then click Activate to connect. The status should change to a checkmark within 30 seconds. Your entire network now routes through the VPN tunnel.

For WireGuard on newer ASUS firmware (2022 and later), select the WireGuard tab instead. You will need the WireGuard configuration from your VPN provider, which includes a private key, public key, endpoint address, and allowed IPs. Paste or upload the configuration and activate.

TP-Link routers that support OpenVPN client place the feature under Advanced settings. Log in at 192.168.0.1 or tplinkwifi.net. Go to Advanced, then VPN Client in the sidebar.

Enable the VPN Client toggle. Click Add to create a new connection. Select OpenVPN as the VPN type. Enter a description and your VPN provider credentials. Upload the .ovpn file from your provider.

Click Save, then select the connection and click Enable. The status indicator shows whether the connection succeeded. If it fails, check that the .ovpn file is not corrupted and your credentials are correct.

Not all TP-Link models have this option. If you do not see VPN Client in your admin panel, your model’s stock firmware does not support it. Check for a firmware update first. If no update adds VPN client support, consider DD-WRT or buying a compatible router.

Flash DD-WRT for Unsupported Routers

DD-WRT is open-source firmware that adds advanced features to many consumer routers, including full VPN client support with OpenVPN and WireGuard. Flashing custom firmware voids your warranty and carries a small risk of bricking the router if something goes wrong during the process.

First, check the DD-WRT router database at dd-wrt.com/support/router-database/ to verify your router model is supported. Not every router has a DD-WRT build available. Download the correct firmware file for your exact model and hardware revision. Using the wrong file will brick the router.

Before flashing, reset your router to factory defaults. This creates a clean starting point. Then log in to your router’s stock admin panel, go to the firmware update section, and upload the DD-WRT firmware file just as you would a manufacturer firmware update. The router will reboot into DD-WRT.

After flashing, access the DD-WRT admin panel at 192.168.1.1. Set a new admin password when prompted. Go to Services, then VPN. Enable the OpenVPN Client. Fill in the server address, port, tunnel device (TUN), protocol (UDP), encryption cipher, and authentication algorithm using values from your VPN provider. Paste the CA certificate, client certificate, and client key from your provider’s configuration files.

Click Save, then Apply Settings. Check the Status tab under OpenVPN to confirm the connection is active.

OpenWrt is another custom firmware option that offers similar VPN capabilities with a different interface. The choice between DD-WRT and OpenWrt often comes down to which one supports your specific router model better.

Optimize VPN Speed on Your Router

VPN speed on a router depends heavily on the router’s CPU power and the protocol used. Several adjustments can help minimize the speed penalty.

Use WireGuard instead of OpenVPN whenever possible. The speed difference is substantial, often doubling throughput on the same hardware. If your setup only supports OpenVPN, continue with the tips below.

For OpenVPN, switch from TCP to UDP in your configuration. UDP has less overhead and delivers better speeds. Most VPN providers default to UDP, but verify your .ovpn file uses proto udp.

Reduce the encryption cipher strength if your provider allows it. AES-128-GCM is faster than AES-256-GCM with minimal practical security difference for home use. Edit the .ovpn file and change cipher AES-256-GCM to cipher AES-128-GCM if your provider supports it.

Connect to the closest VPN server geographically. A server 500 miles away will be faster than one 5,000 miles away due to reduced latency.

Consider running VPN on only specific devices using DHCP reservation combined with policy-based routing. ASUS routers with ASUSWRT-Merlin firmware support this feature, allowing you to route some devices through the VPN while others connect directly.

Test your speeds before and after enabling the VPN. Run a speed test at speedtest.net with the VPN off, then again with it on. If the loss exceeds 50% on a decent router (any model from the last three years), something is misconfigured.

Understand the Difference Between VPN Client and VPN Server

Router VPN settings often show both client and server options, and confusing them is a common mistake.

VPN Client connects your entire home network to a commercial VPN provider. All internet traffic from all devices exits through the VPN provider’s server. This is what most people want when they say “put a VPN on my router.” It provides privacy, geo-unblocking, and encrypted traffic.

VPN Server turns your router into a VPN endpoint that you connect to from outside your home. When you are at a coffee shop or hotel, you connect back to your home router’s VPN server, and your traffic routes through your home internet connection. This gives you a secure connection to your home network and lets you access local devices like NAS drives, security cameras, and printers from anywhere.

Both features are useful but serve completely different purposes. You can run both simultaneously on routers that support it.

For VPN server setup, you will also need to set up port forwarding for the VPN port (1194 for OpenVPN, 51820 for WireGuard) so external connections can reach your router. You will also need to know your public IP address, or set up a dynamic DNS service if your ISP changes your public IP periodically.

Frequently Asked Questions

Does a VPN on my router slow down internet speed?

Yes, a router VPN reduces speeds because the router's processor handles encryption. Expect 30-50% speed loss on most consumer routers with OpenVPN. WireGuard reduces the loss to 10-30%. High-end routers with dedicated VPN processors (ASUS RT-AX86U, RT-AX88U) handle encryption more efficiently and lose less speed.

What is the difference between OpenVPN and WireGuard on a router?

OpenVPN is widely supported, highly configurable, and available on almost every VPN-capable router. WireGuard is newer, faster, and uses less CPU, but fewer routers support it natively. WireGuard typically delivers 40-60% better throughput than OpenVPN on the same hardware.

Can I install a VPN on any router?

No. The router must support VPN client functionality. ASUS routers with ASUSWRT firmware have built-in VPN client support. TP-Link and Netgear routers have limited or no VPN client support in stock firmware. For unsupported routers, flashing DD-WRT or OpenWrt custom firmware adds VPN capability, but not all router models are compatible.

What is the difference between a VPN client and VPN server on a router?

A VPN client on the router connects your entire network to a VPN provider like NordVPN or ExpressVPN, encrypting all outbound traffic. A VPN server on the router lets you connect back to your home network from outside, useful for secure remote access. These are separate features that serve different purposes.

Will a router VPN protect all my devices including smart TVs and IoT devices?

Yes. When the VPN runs on the router, every device that connects to your network automatically uses the VPN tunnel. This includes smart TVs, game consoles, smart speakers, and IoT devices that cannot run VPN apps on their own.