VPN on your router — whole home behind VPN
Set up OpenVPN once on your router and all home traffic goes through the VPN. No need to install a client on every device.
Choose a planWhy VPN on the router
Devices without VPN
Smart TVs, set-top boxes, game consoles and anything you can't install a VPN client on — now behind the VPN.
One setup for all
Configure the router once — every device at home is protected, including guest and IoT gear.
No device limit
The router shares the VPN via NAT. The server sees one connection; at home — as many devices as you like.
No leaks
redirect-gateway sends all traffic, including DNS, through the tunnel. IoT can't leak around the VPN.
Supported routers
A ready .ovpn with embedded login/password is in your cabinet after purchase. Below — what you need and the setup order.
Keenetic
Requirements: KeeneticOS 3.x+ · Built-in OpenVPN client («Other connections»)
Setup
- In your openvpn.pro cabinet download the «Router — Keenetic» config (login/password already embedded).
- Router web UI → Internet → Other connections → Add connection → type OpenVPN.
- Paste the .ovpn file contents into the configuration field, save.
- Enable the new connection (toggle).
- Connection priorities → move OpenVPN to the top so all traffic goes through the VPN.
💡 To route only some devices — use Keenetic access policies instead of raising the priority.
ASUS / Merlin
Requirements: ASUSWRT or ASUSWRT-Merlin firmware · VPN → VPN Client section
Setup
- Download the «Router — ASUS / Merlin» config from the cabinet.
- Web UI → VPN → VPN Client → «Add profile» → OpenVPN tab.
- «Import .ovpn file» → pick the downloaded file. Login/password already embedded.
- «Redirect Internet traffic through VPN» → Yes (whole home via VPN).
- Click «Activate» — status turns Connected.
💡 On Merlin the «Redirect Internet traffic» field has a Policy Rules mode — route only selected devices/subnets via VPN.
Mikrotik RouterOS
Requirements: RouterOS 6.x/7.x · AES-capable CPU for acceptable speed (hAP ac² and up)
Setup
- Download the «Router — Mikrotik» config — the file header has ready CLI commands and data (remote/login/password, ca/cert).
- Import the certificates from the file's inline blocks (System → Certificates → Import).
- Create the ovpn-client: /interface ovpn-client add name=openvpn-pro connect-to=<remote> user=<login> password=<pass> certificate=<cert> add-default-route=yes
- Enable whole-home: /ip firewall nat add chain=srcnat out-interface=openvpn-pro action=masquerade
- Verify: /interface ovpn-client monitor openvpn-pro — status should be connected.
💡 RouterOS 6.x supports OpenVPN-TCP only — pick an OpenVPN TCP order. RouterOS 7.x also does UDP.
OpenWRT / LEDE
Requirements: OpenWRT 21.02+ · ≥8 MB free flash for openvpn-openssl + LuCI plugin
Setup
- Install packages: opkg update && opkg install openvpn-openssl luci-app-openvpn
- Download the «Router — OpenWRT» config and place it at /etc/openvpn/openvpn-pro.ovpn
- LuCI → VPN → OpenVPN → enable the profile (or from shell: /etc/init.d/openvpn enable && /etc/init.d/openvpn start).
- Firewall: make sure the zone with the ovpn interface forwards lan→vpn with masquerade (usually the wan zone is masq — add the tun to it).
- Verify: from a LAN device open any «what is my IP» — the address should be the server's.
💡 A weak router (single-core, no AES) yields 10–30 Mbps on OpenVPN. For gigabit you need an AES-NI CPU or switch to WireGuard.
pfSense / OPNsense
Requirements: pfSense CE/Plus or OPNsense · x86 host with AES-NI (nearly any mini-PC)
Setup
- Download the «Router — pfSense» config — the header has remote/port, login/password and inline CA/cert blocks.
- VPN → OpenVPN → Clients → Add. Server host/port from the remote block; Auth = User/Pass (embedded).
- Upload the CA and Client Certificate (System → Cert Manager) from the file's inline blocks and select them in the client.
- Interfaces → Assignments → add the OpenVPN interface, enable it.
- Firewall → NAT (Outbound) + Rules: send LAN traffic to the OpenVPN gateway (policy routing) for whole-home.
💡 Policy-routing lets you send only selected devices/VLANs through the VPN and the rest directly.
Other router
Requirements: Any router with an OpenVPN client · Ability to enable NAT/masquerade on the VPN interface
Setup
- Download the «Router — other / generic» config — login/password embedded, redirect-gateway already on.
- Import the .ovpn into your router's OpenVPN client.
- Enable NAT/masquerade on the VPN interface so LAN devices egress through the tunnel.
- Activate the connection and check the IP from a device on the network.
💡 Model not listed? The generic config works with any OpenVPN-compatible router.
FAQ
Why VPN on the router?
Set it up once and the whole home is behind the VPN: Smart TVs, set-top boxes, consoles, IoT and any device without VPN support. No client needed on every gadget.
How many devices can I connect?
The router shares the VPN with all home devices via NAT — the server sees a single connection. The number of home devices is not limited by the plan.
Which router for good speed?
OpenVPN speed is CPU-bound. Routers with hardware AES (ASUS ac/ax, MediaTek-based Keenetic, x86 pfSense) reach 100+ Mbps. Weak single-core units without AES do 10–30 Mbps.
What about DNS leaks?
The router config enables redirect-gateway — all traffic, including DNS, goes through the tunnel. IoT devices can't leak around the VPN.
What if the router VPN drops?
The router reconnects automatically (the link stays up 24/7). On pfSense/OpenWRT/Mikrotik you can set a kill-switch to block egress until the tunnel is back.