Skip to Main Content
PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

How To Install a VPN on Your Router

If you need VPN security but you're tired of installing one on every device in your home or small office, maybe it's time to add one to your router. Router VPNs protect any device connecting through them. Here's how to do it.

Updated June 2, 2021
A Wi-Fi router

These days, you need as much internet security as you can get. From telecommuting to simply watching your favorite show on a smart TV, the average consumer's attack surface is three to four times the size as when most of us had only one PC. That's not just a worry, it's also a chore since you'll need to install protective software on all those devices. But while you can't get around installing separate antivirus software on every device, you can at least make your virtual private network (VPN) concerns less aggravating by skipping the per-device procedure and simply installing a blanket VPN on your router.

Why Get a VPN?

VPNs are internet security must-haves for a number of reasons. First, they make your computer appear as if it's in a geographic location other than where you actually are. That's because you're logging into a server operated by the VPN provider and then running your web sessions from there. That means when cookies or Big Bad Government Agencies try and trace you from your web activities, they'll find the VPN provider's server, not you. Even better, just like you, hundreds or thousands of people will be doing the same thing off the same server.

But VPNs do more than anonymize your session. They also encrypt your traffic. VPNs can use a variety of different encryption methods, but the most popular is the AES 128-bit or 256-bit standard. Combine that with anonymization, and you've got a scenario where your location is hidden and your individual encrypted traffic stream is ridiculously difficult to pick out because your stream of encrypted gobbledygook is one of hundreds or thousands of other streams of encrypted gobbledygook pouring into and out of that same server farm.

That's the draw of a VPN: You get all those benefits just by installing a simple web client on your device and making sure it's active before starting any other web or cloud session.

But if your home has multiple devices, especially if you think some of them might be running connected software that starts before you've even had a chance to activate your VPN, something more constant might be required. That's when you opt for installing a VPN client on your wireless router. With a VPN client on your router, anyone using your local network to browse the web or access a cloud service will automatically be using the VPN because they can't get out to the internet without jumping through that always-on hoop.

Many Kinds of VPN Routers

Today, while some routers support connecting to VPN services via OpenVPN or the Point-to-Point Tunneling Protocol (PPTP), you probably won't find this feature on most consumer-oriented routers. It's also not a lightweight chore to configure. Some of the more expensive routers will support VPNs using those features, especially if the manufacturer is looking to sell them into small businesses as well as homes.

There are also a few (though growing) number of VPN providers who've taken on the task of making sure you can install their VPN client on a router's firmware (more on that below). But those clients usually aren't universal, so you'll need a router from the VPN provider's compatibility list. While that's great, you're probably happy with your current router and dropping the bucks for a whole new router just to get a VPN client might not be an attractive option.

This leaves you to hunt for an alternative firmware that'll support either OpenVPN or your chosen VPN provider's client. The most popular of these is DD-WRT, though another option is Tomato if you have a Broadcom-based router. DD-WRT is the more mature of the two and works on many routers, both old and new. You can check to see if your particular router is supported here.

Alternatively, you can turn an old x86 PC into a router by adding an extra network port via an expansion card and then installing DD-WRT on that. This does take a bit of additional work, but if you've got the chops, it's a great way of building yourself a highly customizable and very capable router without much added cost.

Most folks, however, will stick to installing DD-WRT on their compatible router, which is not only what it's intended to do, but also a great way to update and expand your networking capabilities. The only downside of using your router this way is that you can void your warranty, or worse, render the router completely inoperable if things go very wrong. The best way to avoid this is to make sure your aiming to install DD-WRT on a router that's not only supported (check that link above), but has been supported for a good long while, too.

The longer your router's been supported, the smoother the firmware install will go since the development team will have had lots of time to smooth out any kinks. You should also find a support forum with users familiar with both your router and DD-WRT. Some router manufacturers have such forums off their support pages, but more often you'll find them in independent web locations, such as the main DD-WRT website or Reddit.

Once you've got those resources in place, we've put instructions on how to get started upgrading your router below. To write this article, I performed an upgrade on three routers. Two of them carried the Linksys brand, namely the LAPAC1200 AC1200 Dual Band Access Point and the WRT1200AC v2. While the upgrade on the LAPAC1200 failed, probably due to the fact that it's not a full-fledged router, the process worked fine on the WRT1200AC. For grins, I decided to do another installation on an old, generic Windows PC that I outfitted with two gigabit network interface cards (NICs). That process also went fine, and while it's certainly bulkier than the WRT1200AC, it's still the faster of the two.

Getting to Your Router Configuration

Every router is a little bit different, but most Linksys routers follow a similar pattern when it comes to login and making changes to the configuration. That process is also similar to what you'll find on most other router brands, too, so it's a good example for this article. The first thing to do is figure out what your router's Internet Protocol (IP) address is. To do this on Microsoft Windows 10, click the Start menu and type in Command Prompt and click Enter. Then type in ipconfig and click Enter again. You should see the same thing as in the screen shot below, though with different address numbers. Your router's IP address will be listed as the Default Gateway. Here, that's 192.168.13.1.

Windows command line screen shot showing a local router IP address

Next, open your browser and type in your router's IP address as the URL (http:\\192.168.13.1). That'll get you to a login prompt for your router's administration console. If you've never changed the username and password for your router, then looking up your router model on the Linksys website should lead you to a support page where the default credentials are listed. If it's not Linksys, then just find your original installation instructions from when you first installed the router and the default credentials will be there. If that document is long gone, then head over to your router maker's website and find the instructions for setting your router back to factory defaults. The default credentials should be there, too. If that doesn't work, you'll need to call your router's support line and ask.

Once you get access to the router's administrator functions, you'll want to find the console that allows a firmware update. Generally, this will be found under the Administration tab. For specific instructions for Linksys routers, check here. Other router vendors will have similar instructions available off their support pages.

Linksys WRT1200AC router firmware upgrade screen shot

Downloading and Installing DD-WRT

This step is arguably the most important piece since you can potentially "brick" (that is, render inoperable) your router if anything goes wrong. This could happen due to incompatibility on the software side or simply because you suffer a power outage at a particularly critical step of the update process. I'm not trying to scare you off here, and the vast majority of DD-WRT installs run just fine, but the reality is that something bad could actually happen to the router, so please do exercise caution.

Navigate to this page and enter your router's model name. You'll get a list of potential candidates. Pick the one that matches your router's brand and model number, and then download the bin file.

DD-WRT website download page screen shot

Now, from the Firmware Update screen, upload the bin file and wait. If everything worked the way it should have, then you will have a router that's running DD0-WRT and is therefore compatible with OpenVPN. If things go south and your router decides that you aren't on speaking terms anymore, do not panic. That happened to me when I tried upgrading the Linksys LAPAC1200 Access Point. Just do what I did: Go to this page and follow the instructions exactly. With any luck, you'll get back to a good starting place to try again.

DD-WRT setup page screen shot

Once everything lights up the way it's supposed to, the default IP address of a new DD-WRT install is http://192.168.1.1. Again, enter that address into your PC's web browser as a URL, and you'll see a screen that prompts you to reset the default username and password. After that step, you can move on to the basics of your new router's configuration process. For business users and those with more advanced network requirements, DD-WRT offers a lot of advanced possibilities, so running through everything is beyond the scope of this article. But for most home and small business implementations, you will need to set the connection type for your wide area network (WAN), which really means your Internet provider. Generally speaking, this will usually be found under the Dynamic Host Configuration Protocol (DHCP), so if you aren't sure, that's a good place to start.

DD-WRT DHCP setup page screen shot

Setting Up The VPN Client

First get your router talking to the Internet on one side and your local area network on the other. Then set up any more advanced network settings you need, such as Quality of Service (QoS) or access controls. Only once the router is fully humming should you consider installing your VPN client.

To do that, you will need to navigate to the VPN tab under Services. From there, check the Enable Bubble next to "Start Open VPN Client." At this point, there is no single set of instructions to make this work. The settings will be completely unique to the VPN provider. However, there are ready-made instructions for setting up your VPN client on DD-WRT for several of PCMag's top VPN players. For example, NordVPN has DD-WRT setup instructions here, and Private Internet Access VPN has the same thing for its VPN here. Some VPN brands will want to install their own software, some will want to use OpenVPN. Just follow the instructions for your VPN brand, and you'll be right on track.

DD-WRT OpenVPN setup page

Check Your Handiwork

DD-WRT has a nice Status tab with a VPN section that will show you if you're connected and everything worked as anticipated. If you want to go the extra mile, then you can check your IP by typing "What is my IP?" into Google. You should get something back that's different than what you started with since you'll be surfing to Google from your VPN vendor's server rather than your PC if your VPN is working properly. If that happens, great job! You can now browse the web with more anonymity on all of your connected devices.

Top VPNs to Protect Data and Online Privacy

For more detailed information on the wide variety of VPN services out there, check out our buying guide to the best VPNs. While not all of those we reviewed have clients aimed at router installation, some of the top all-around performers are...

Our Best All-Around Pick

The VPN for Power Users

For Those With a Deep Security Focus

If You're Frequently On the Go

A Good Choice for Beginners

Like What You're Reading?

Sign up for SecurityWatch newsletter for our top privacy and security stories delivered right to your inbox.

This newsletter may contain advertising, deals, or affiliate links. Subscribing to a newsletter indicates your consent to our Terms of Use and Privacy Policy. You may unsubscribe from the newsletters at any time.


Thanks for signing up!

Your subscription has been confirmed. Keep an eye on your inbox!

Sign up for other newsletters

Table of Contents

TRENDING

About Daniel Brame

Daniel Brame, MCSD, is a Solutions Consultant and freelance product reviewer for PCMag.com. He can be reached at [email protected].

Read Daniel's full bio

Read the latest from Daniel Brame