Setup guide

How to set up a VPN on a router

Put SwitchVPN on the router and every console, smart TV and guest phone at home goes through it, while your plan counts the router as a single device.

Before you start

About 15 minutes

  • A router with a WireGuard or OpenVPN client: OpenWrt 21.02 or later, GL.iNet firmware 4, ASUSWRT 388 or later, and others
  • Access to the router admin page
  • An active plan; the router takes one slot for the whole home
  • A city close to home: the router CPU sets the speed ceiling, and nearby servers help

SwitchVPN works with free official apps and built-in system clients, so there is no SwitchVPN software to install or update on Router.

sv

Amsterdam

Protocol
WireGuard
Clients routed
9
Block non-VPN traffic
On

VPN client on

Illustration: a working Router connection in Amsterdam. Your own values appear in the dashboard.

Easiest

Set up WireGuard on a GL.iNet router

GL.iNet firmware has the friendliest VPN client screen of any consumer router.

  1. Make a router device

    In Dashboard, VPN, add a device called Router, choose a city near home for the best speed, select WireGuard and download the file.

  2. Open the client

    Sign in to the admin panel, open VPN, then WireGuard Client, and choose Add New Group or use the default group.

  3. Upload the file

    Choose Upload Configuration File, select the .conf, and press Apply.

  4. Start the connection

    On VPN Dashboard, switch the new profile on. Devices on the router now use SwitchVPN.

Option 2

Set up WireGuard on OpenWrt

You need the WireGuard packages and LuCI web interface support.

  1. Install the packages

    System, Software, update lists, then install luci-proto-wireguard (it pulls in wireguard-tools). Reboot.

  2. Create the interface

    Network, Interfaces, Add new interface. Name it sv, protocol WireGuard VPN. Use Load configuration to paste your .conf, which fills the key, address and peer.

  3. Route all traffic

    In the peer settings, tick Route Allowed IPs. Save.

  4. Add it to a firewall zone

    Assign the interface to the wan zone, or create a vpn zone with masquerading and allow forwarding from lan. Save and apply.

Option 3

Set up WireGuard or OpenVPN on an ASUS router

Recent ASUSWRT firmware includes a WireGuard client; older models offer OpenVPN.

  1. Open the VPN client

    In the admin page open VPN, then VPN Client (called VPN Fusion on some models), and add a profile.

  2. Choose the protocol tab

    For WireGuard, import the .conf. For OpenVPN, upload the .ovpn and enter nothing else, since the file carries everything needed.

  3. Activate

    Press Activate next to the profile and wait for the connected status.

Kill switch on Router

Routers handle the kill switch in the firewall: traffic from your home network may only leave through the VPN.

  1. GL.iNet

    In VPN Dashboard, open the global options and enable Block Non-VPN Traffic.

  2. OpenWrt

    In Network, Firewall, allow forwarding from lan to your vpn zone only, and remove forwarding from lan to wan.

  3. ASUS

    Where the firmware offers it, enable the Internet kill switch option in the VPN client profile.

Split tunneling on Router

Routers split by device rather than by app: choose which devices at home use the tunnel.

  1. GL.iNet

    VPN Dashboard, VPN Policy, then choose Based on the Client Device and pick the devices that should or should not use SwitchVPN.

  2. OpenWrt

    Install the pbr package (policy-based routing) and add rules by device address or domain.

  3. ASUS

    VPN Fusion lets you assign each device to the VPN or to the normal connection.

How split tunneling works

Switch city on Router

Change the router city in the dashboard and upload the new file. Every device at home moves with it.

  1. Download the new config

    Dashboard, VPN, select Router, choose a new city, download.

  2. Replace the profile on the router

    Upload it as a new profile, switch it on, then delete the old one.

Browse every server city

Router VPN troubleshooting

Connected, but nothing loads at home

The VPN interface is not in a firewall zone that allows forwarding. Recheck the zone settings, then restart the interface.

Speeds are far below my line speed

Older router CPUs cannot encrypt at full gigabit. WireGuard is lighter than OpenVPN; choose it whenever the router supports it.

The router uses its own DNS

Make sure the router hands out its own address as DNS and forwards to the tunnel DNS from your config, so lookups stay inside the tunnel.

UDP 51820 is blocked by the upstream network

Use the OpenVPN TCP 443 profile instead.

Router setup questions

Does the router use one device slot?

Yes. Everything behind it shares that one slot, which is why a router suits big households.

Can I still use the VPN on phones at home?

You can, but double tunneling slows things down. Pause the phone tunnel while on home Wi-Fi.

Which router should I buy for a VPN?

Any model with WireGuard in its firmware and a recent CPU. GL.iNet travel routers also protect hotel Wi-Fi for every gadget you carry.

Plans that cover Router

Basic

$2.51 a month

6 devices at once, $60.29 for 24 months

Plus

$3.64 a month

10 devices at once, $87.29 for 24 months

Pro

$6.22 a month

12 devices at once, $149.39 for 24 months

Compare all plan lengths

Guides for your other devices

Protect your Router today

Top up with crypto, pick Basic, Plus or Pro, and your Router setup is a few minutes away.