🔵
← All setup guides

Ubiquiti UniFi Gateway WireGuard Setup Guide

UniFi gateways (UDM, UDM Pro, UDM SE, UCG-Ultra) support WireGuard client natively in UniFi Network 7.x. The controller manages NAT automatically — no PostUp or iptables needed.

1

Create a tunnel in ProxyLink

Go to Devices → + Add → Router / LAN site, select Home / LAN Router, enter your LAN subnet, and download your .conf file.

2

Open the UniFi Network controller

Log into your UniFi Network application (local or cloud).

3

Create a VPN Client

Go to Settings → VPN → VPN Client → Create New.

  • VPN Type: WireGuard
  • You can import your .conf file directly
  • Or fill in manually: Private Key, Address, Server Public Key, Endpoint, Allowed IPs
4

Enable and test

Toggle the VPN client ON. UniFi handles NAT and routing automatically for traffic assigned to use this tunnel. No iptables rules needed.

5

Route LAN traffic (optional)

To route specific LAN clients or networks through the ProxyLink tunnel, go to Traffic Management → Policy-Based Routing and create a rule targeting your VPN client.

Good to know

UniFi handles NAT transparently. You do not need PostUp rules or any iptables configuration.
UniFi WireGuard support requires UniFi Network 7.x+. Older controller versions do not have this feature.

What you get once the tunnel is up

Ready to connect?

Create a free account and set up your first tunnel in minutes. Free during early access — no card required.

Setup guides for other platforms