Click to skip the navigation bar

WireGuard VPN Setup: Server and Client Configuration on Your TP-Link Router

Configuration Guide
Actualizado04-02-2026 08:31:48 AM Number of views for this article505094
Este artículo se aplica a:

WireGuard VPN is a modern protocol based on the User Datagram Protocol (UDP) that uses current encryption algorithms to deliver secure, fast remote access. This guide covers how to set up your TP-Link router as a WireGuard VPN Server, so remote devices can access your home network, and how to configure the WireGuard VPN client to route your router's traffic through an external VPN.

Key Takeaways

  • WireGuard VPN is a modern VPN protocol based on the User Datagram Protocol (UDP) that uses current encryption algorithms to provide secure, fast remote access.
  • Setting up the TP-Link router as a WireGuard VPN Server allows remote devices to access your home network. Selecting "Internet and Home Network" as the Client Access type also routes remote Internet traffic through the VPN.
  • Each WireGuard VPN account can only be used by one client device at a time. It is not possible for two devices to connect to the VPN server simultaneously using the same account.
  • To connect a mobile device to the WireGuard VPN server, download the WireGuard app from Google Play or the Apple App Store and scan the QR code generated by the router.
  • When using the router as a WireGuard VPN Client, the same configuration file cannot be used on multiple VPN clients simultaneously. Importing a file to both a mobile phone and a router means only one can be connected to the VPN server at a time.
  • If the server's private and public keys are renewed, any connected clients must be reconfigured before they can reconnect to the VPN server.

Set Up WireGuard VPN Server on Your TP-Link Router

The WireGuard VPN Server feature allows remote devices to connect securely to your home network. The steps below use the Archer AX55 as the example model.

Step 1: Enable WireGuard VPN Server

  1. Visit http://tplinkwifi.net and log in with your TP-Link ID or the password you set for the router.
  2. Go to Advanced > VPN Server > WireGuard and tick the Enable box for WireGuard.

WireGuard VPN server settings panel showing Enable checkbox, Tunnel IP, Listen Port, Client Access, and key fields.

  1. View the default WireGuard VPN settings, as shown above. The parameters are automatically filled in. Do NOT change them unless necessary.
  2. Select your Client Access type. Select Home Network Only if you only want the remote device to access your home network. Select Internet and Home Network if you also want the remote device to access the Internet through the VPN Server.
  3. (Optional) Click Advanced Settings to display more settings. If DNS is turned on, the router will become the DNS server of the VPN client that establishes a connection with it. Change the Persistent Keepalive time (25 seconds by default) to send out heartbeat regularly. You can also click RENEW KEY to update the private key and public key.

Step 2: Create WireGuard VPN Accounts for Remote Clients

  1. Locate the Account List section. Click Add to create an account.

Add WireGuard account dialog with Username, Address, Allowed IPs, and Pre-shared Key fields.

  1. Specify a name for this account.
  2. Enter the address of the virtual interface assigned to this account. Do NOT change it unless necessary.
  3. Traffic sent from the WireGuard VPN client to the allowed IPs (client) will be transmitted through the tunnel. By default, all network traffic from clients will be transmitted through the tunnel. Do NOT change it unless necessary.
  4. Traffic sent from the WireGuard VPN server to the allowed IPs (server) will be transmitted through the tunnel. Do NOT change it unless necessary.
  5. Enable or disable the Pre-shared key.
  6. Click SAVE.

Note: One account can only be used by one WireGuard VPN client at the same time to connect to the WireGuard VPN server.

  1. Connect to the WireGuard server. On the Account List, click in the Modify column of the corresponding account.

Connect to Server dialog showing QR Code tab with a scannable WireGuard VPN QR code.

  • Other devices (for example, a TP-Link WireGuard VPN client): Click EXPORT to save the WireGuard VPN configuration file. The remote device will use this file to access your router.

Connect to Server Export tab showing WireGuard config file with Interface and Peer parameters.

  1. On the account list, you can click the button to modify the VPN server settings, connect to the server, or delete the account.

WireGuard Account List showing two accounts, Test and ADMIN, with Allowed IPs and Modify options.

Note: If you have renewed the key, please reconfigure the client, otherwise the client will not be able to connect to the VPN server.

If your TP-Link router is connected to a main router, you may also need to configure port forwarding. See How to Set Up Port Forwarding on the Main Router When VPN Server Is Set on the TP-Link Router or Deco for guidance.

Configure WireGuard VPN Client on Your TP-Link Router

When your TP-Link router is set up as a WireGuard VPN client, all network traffic from designated devices is routed through an external VPN server. The steps below use the Archer AX55 as the example model. If you need to set up the WireGuard VPN client on a mobile device instead, see How to Set Up VPN Client on Computer and Phone.

  1. Download your VPN configuration file — Download the configuration file from your VPN provider.
  2. Check and edit your WireGuard VPN client configuration file — The router supports a specific set of WireGuard configuration file parameters (shown in Pic 1 below). If your configuration file includes unsupported parameters such as IPv6 addresses or MTU values (shown in Pic 2 below), edit the file and delete those parameters before saving.

Supported WireGuard config file showing Interface and Peer sections with PrivateKey, Address, DNS, PublicKey, AllowedIPs, and Endpoint.

Unsupported WireGuard config with IPv6 address and MTU highlighted in red, indicating fields to delete before importing.

  1. Log in to your router — Visit http://tplinkwifi.net and log in with your TP-Link ID or the password you set for the router. Go to Advanced > VPN Client.
  2. Enable VPN Client — Enable VPN Client and click SAVE.
  3. Import your WireGuard VPN client configuration file — Click the Add button in the upper-right of the Server List. Specify a description for the VPN and choose WireGuard as the VPN Type. Click BROWSE to import the configuration file provided by your VPN provider, then click SAVE.

Add Profile dialog for WireGuard VPN client with imported config file showing Interface and Peer settings fields.

  1. Enable WireGuard VPN access for your devices — Check and enable the WireGuard entry in the Server List, then add and enable VPN Access for the devices that will use the VPN function.

WireGuard VPN server list row showing test profile with Connecting status and enabled toggle highlighted.

VPN Device List showing two devices with MAC addresses, VPN Access toggles enabled, and Modify options.

Note: It's NOT suggested to use the same configuration file on multiple VPN Clients simultaneously. You could import the configuration file into your mobile phones as well as the router, but you are not allowed to connect to the VPN server simultaneously based on WireGuard protocols.

If you have trouble accessing certain devices after connecting, see Why Can't I Access or Discover Certain Devices Over VPN?

Related FAQs

¿Es útil esta pregunta frecuente?

Sus comentarios nos ayudan a mejorar este sitio.

Recommend Products