Set up TekLan VPN on a compatible router

Create a WireGuard profile in the Dashboard, import it into your router and choose which devices use it.

Setup steps

Choose how to connect

WireGuard router setup

Import a .conf tunnel

Use WireGuard on any router with a WireGuard client. The steps for each make of router are below.

Before you begin

  • Confirm the router supports the protocol used by this method.
  • Sign in to the router administration page and back up its current settings.
  • Keep the TekLan VPN Dashboard open in another tab.

Get the WireGuard profile

After creating the profile, choose the delivery route that suits where the Dashboard is open.

  • Download profile: save the .conf file on the device you are setting up.
  • Email: select Send profile, then Send email. The Dashboard sends the .conf attachment to your account email address.
  • Device access code: select Send profile, then Get code. On the device you are setting up, open dash.teklanvpn.com/get, enter the code and select Download profile. The code expires after 15 minutes and works once. Generating another code replaces it.

Steps

  1. In the client area, select VPN Dashboard on Home.
  2. Select Add device and give the router a recognisable name.
  3. Choose WireGuard, review the details and create the profile.
    Selecting WireGuard
    Choose WireGuard.
    Reviewing a WireGuard profile
    Review and create the profile.
  4. Download the generated .conf file.
  5. Open the WireGuard client in the router’s administration interface and import the file, following the steps for your router.
  6. Save and activate the tunnel. Menu and field names vary between router manufacturers.

Check the connection

  1. Confirm the router VPN client reports Connected.
  2. Assign one test device to the VPN policy.
  3. On that device, confirm the public IP address changes.
  4. Disconnect the router tunnel and confirm the normal route returns.

If it does not connect

  • Confirm the imported file matches the selected router firmware and protocol.
  • Generate and import a fresh profile if the saved one was replaced.
  • Check the router date, time and DNS settings.
  • Remove an older VPN client using the same policy before testing again.

Still stuck? See the help articles, or open a support ticket with the exact error you see.

“WireGuard” and the “WireGuard” logo are registered trademarks of Jason A. Donenfeld.

OpenVPN router setup

Use OpenVPN on GL.iNet or OpenWrt

The OpenVPN password from the Dashboard unlocks the profile: on GL.iNet it is the passphrase, on OpenWrt the askpass file.

Before you begin

  • Confirm the router supports the protocol used by this method.
  • Sign in to the router administration page and back up its current settings.
  • Keep the TekLan VPN Dashboard open in another tab.

Get the OpenVPN profile

  • Download profile: save the .ovpn file on the device you are setting up.
  • Email: select Send profile, then Send email. The Dashboard sends the .ovpn attachment to your account email address.
  • OpenVPN credentials: select Show OpenVPN credentials and keep the displayed profile username and password available. The password unlocks the private key inside the file. It is not your TekLan VPN password.

Steps

  1. Create an OpenVPN profile for the router.
    Selecting OpenVPN
    Choose OpenVPN.
  2. Select Set up this device and choose Router.
    Router connection options in the Dashboard
    Choose the exact router or firmware before continuing.
  3. Select the exact router or firmware under Setup option.
  4. Use Download profile, Show OpenVPN credentials or Send profile as directed.
  5. Follow the OpenVPN step for GL.iNet or OpenWrt below.

Check the connection

  1. Confirm the router VPN client reports Connected.
  2. Assign one test device to the VPN policy.
  3. On that device, confirm the public IP address changes.
  4. Disconnect the router tunnel and confirm the normal route returns.

If it does not connect

  • Confirm the imported file matches the selected router firmware and protocol.
  • Generate and import a fresh profile if the saved one was replaced.
  • Check the router date, time and DNS settings.
  • Remove an older VPN client using the same policy before testing again.

Still stuck? See the help articles, or open a support ticket with the exact error you see.

OpenVPN® and the keyhole logo are registered trademarks of OpenVPN.

Choose your router or firmware

Use the steps for the firmware running on your router.

GL.iNetWireGuard or OpenVPN client

Upload the profile

  1. Update the router, back up its settings and sign in to its administration panel.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. Open VPN, WireGuard Client, select Add Manually and upload the file.
  4. Start the profile, and use the VPN policy controls if only chosen devices should use TekLan VPN.
  5. For OpenVPN instead: create an OpenVPN profile, upload the .ovpn file under OpenVPN Client, choose Passphrase only and enter the password from Show OpenVPN credentials.

Check: the profile shows a green dot; then check the public IP address on a device behind the router.

ASUS routers with VPN FusionWireGuard

Add a WireGuard profile

  1. Update the router firmware: WireGuard needs a version later than 3.0.0.4.388.23000, on a model that ASUS lists for VPN Fusion.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. Open VPN, VPN Fusion, select Add profile, choose WireGuard and upload the file.
  4. Activate the connection and assign the devices that should use it.

Check: the connection shows as active; then check the public IP address on an assigned device.

UniFi gatewaysWireGuard

Create the client and route traffic

  1. You need a Next-Gen UniFi Gateway or UniFi Cloud Gateway with the UniFi Network application up to date.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. In UniFi Network, open Settings, VPN, VPN Client, create a WireGuard client and upload the file.
  4. Add a Traffic Route for the devices or networks that should use the VPN.

Check: the client shows Connected; then check the public IP address on a device in the traffic route.

FRITZ!BoxWireGuard

Connect to TekLan VPN

  1. Update FRITZ!OS. Remove any WireGuard connection already set up on the FRITZ!Box first.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. Open Internet, Permit Access, VPN (WireGuard) and select Add WireGuard Connection.
  4. Choose Link Networks, answer Yes when asked if the connection is already set up at the other end, then upload the file.
  5. Turn on Send all network traffic via the VPN connection, or select only the devices that should use it.

Check: check the public IP address on a device behind the FRITZ!Box.

OpenWrtWireGuard or OpenVPN client

Import the profile in LuCI

  1. Back up the router, then install wireguard-tools and luci-proto-wireguard and restart the router.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. In Network, Interfaces, select Add new interface, name it and choose WireGuard VPN.
  4. Select Load configuration…, paste in the file and select Import settings.
  5. On the Peers tab, edit the peer. Make sure its allowed IPs include both 0.0.0.0/0 and ::/0, and tick Route Allowed IPs to send the whole network, DNS and IPv6 included, through the VPN.
  6. Under Firewall Settings, put the interface in the wan zone, then save and apply.
  7. For chosen devices only: leave Route Allowed IPs unticked and install pbr. Turn on its IPv6 support, add a policy that sends the device’s MAC address to the WireGuard interface, and add a DNS policy for the same MAC address with the DNS server from the file.
  8. For OpenVPN instead: make sure IPv6 is switched on, install openvpn-openssl and luci-app-openvpn, upload the .ovpn file under VPN, OpenVPN, save the password from Show OpenVPN credentials in a file such as /etc/openvpn/teklan.pass, run chmod 600 /etc/openvpn/teklan.pass so only root can read it, and add the line askpass /etc/openvpn/teklan.pass to the configuration.

Check: Status, WireGuard shows a recent handshake; then check the public IP address on a device behind the router.

pfSenseWireGuard on Plus and CE

Add the tunnel by hand

  1. Back up pfSense and install WireGuard from System, Package Manager.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. Under VPN, WireGuard, Tunnels, add a tunnel with the private key from the file, then a peer with the public key, endpoint and port, and allowed IPs 0.0.0.0/0 and ::/0.
  4. Under System, Routing, set the default IPv4 and IPv6 gateways to your normal WAN gateways. Then in Interfaces, Assignments, add the WireGuard interface, enable it, and give it the addresses from the file as static IPv4 and IPv6, each with a new gateway at the same address.
  5. Under Firewall, NAT, Outbound, choose Hybrid and add a rule on the WireGuard interface for your LAN. Add the same for IPv6.
  6. Under Firewall, Rules, LAN, add a rule at the top for the devices that should use the VPN, with the WireGuard gateway under Display Advanced. Add the same for IPv6.
  7. DNS: under System, General, replace the DNS servers with the one from the file, using the WireGuard gateway, and untick DNS Server Override. Under Services, DNS Resolver, untick Enable DNSSEC Support and tick Enable Forwarding Mode.

Check: VPN, WireGuard, Status shows a recent handshake; then test one routed device.

OPNsenseWireGuard, whole network

Add the tunnel by hand

  1. Back up OPNsense.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file. Use a location whose file has both an IPv4 and an IPv6 address.
  3. Under VPN, WireGuard, add a peer with the public key, endpoint and port from the file, and allowed IPs 0.0.0.0/0 and ::/0.
  4. Add an instance with the private key and both addresses from the file, MTU 1420, and select that peer. Leave Disable routes unticked, then enable WireGuard.
  5. Under System, Routes, add a route to the server’s IP address (the endpoint, with /32) through your WAN gateway.
  6. In Interfaces, Assignments, add the WireGuard device and enable it.
  7. Set outbound NAT to Hybrid and add a rule on that interface for your LAN, translated to the interface address. Add the same for IPv6.
  8. Let your devices use OPNsense for DNS, so their lookups go through the VPN.

Check: the WireGuard status shows a recent handshake; then check the public IPv4 and IPv6 addresses on a device behind the firewall.

MikroTik RouterOS 7WireGuard

Import, then add routing

  1. Update RouterOS 7 and export a backup.
  2. In the Dashboard, create a WireGuard profile for the router and download the .conf file.
  3. Upload the file through Files, then in the terminal run /interface/wireguard/wg-import config-file=yourfile.conf. The steps below use wg1, the name it gives the interface.
  4. Keep the server reachable: /ip/route/add dst-address=SERVER_IP/32 gateway=YOUR_GATEWAY, with the server’s IP address from the file and your normal gateway.
  5. For the whole network: /ip/route/add dst-address=0.0.0.0/1 gateway=wg1, /ip/route/add dst-address=128.0.0.0/1 gateway=wg1 and, for IPv6, /ipv6/route/add dst-address=2000::/3 gateway=wg1. Let your devices use the router for DNS, so their lookups go through the VPN.
  6. Add NAT: /ip/firewall/nat/add chain=srcnat out-interface=wg1 action=masquerade and /ipv6/firewall/nat/add chain=srcnat out-interface=wg1 action=masquerade.
  7. For one device instead of the whole network: /routing/table/add name=vpn fib, /ip/route/add dst-address=0.0.0.0/0 gateway=wg1 routing-table=vpn and /routing/rule/add src-address=DEVICE_IP/32 action=lookup-only-in-table table=vpn. Send its DNS through the VPN with /ip/firewall/nat/add chain=dstnat src-address=DEVICE_IP protocol=udp dst-port=53 action=dst-nat to-addresses=DNS_FROM_FILE and the same with protocol=tcp. Stop its IPv6 with /ipv6/firewall/filter/add chain=forward src-mac-address=DEVICE_MAC action=drop and /ipv6/firewall/filter/add chain=input src-mac-address=DEVICE_MAC protocol=udp dst-port=53 action=drop.

Check: the peer shows a recent last-handshake; then test a routed device.

Smart home devices, consoles and TVs

Devices that cannot run a VPN app, such as smart speakers, cameras, doorbells, games consoles and smart TVs, use the VPN through the router. You can send the whole network through TekLan VPN, or only chosen devices.

  1. Set up the router’s VPN client with one of the guides above and check that it stays connected.
  2. Find the device in the router’s list of connected devices. Its name or MAC address is usually shown in the device’s own network settings or in its app.
  3. Use the router’s policy-routing controls (VPN Fusion, VPN policy, traffic route or VPN Client device list, depending on the firmware) to send that device through the VPN.
  4. Turn the device’s Wi-Fi off and on, or restart it, so it picks up the new route and DNS settings.
  5. If the device cannot show its IP address, assign a phone to the same policy and check that its public IP address changes.

If the router connects but the device does not use the VPN, check its policy assignment and remove any older VPN policy that also targets it.

Frequently asked

Which routers work with TekLan VPN?

Any router with a WireGuard client, including GL.iNet, ASUS with VPN Fusion, UniFi gateways, FRITZ!Box, OpenWrt, pfSense, OPNsense, TP-Link and Deco models with a WireGuard VPN Client, and MikroTik RouterOS 7.

Does a VPN router count as one connection?

Yes. A VPN router uses one connection, however many devices sit behind it. How connections are counted.

Can I choose which devices use the VPN on my router?

Yes, on firmware with policy routing, such as VPN Fusion, VPN policy, a traffic route or a VPN Client device list. Devices you leave out keep their normal route.

New to TekLan VPN?

Plans from £2.99 a month, the same price when you renew.

See plans