Configure Unifi Network 9.5.21 for WireGuard VPN Access (UDM-PRO)

Updated for Unifi Network 9.5.21 and Unifi OS 4.4.6

At this article we’ll see how you can configure your UDM-Pro for WireGuard VPN Access on Unifi Network 9.5.21.

  1. Login to your UDM-PRO
  2. Enter your Unifi Network application
  3. Click Settings on the left side bar
  4. Click on VPN
  5. From the menu select VPN Server
  6. Press Create New
  7. Select WireGuard
  8. Under Server Address select your desired static IP and Port number (default 51820)
  9. If you do have a “Dynamic DNS” you can use it under “Use Alternate Address for Clients”
  10. Under Advanced select Manual
  11. Under Gateway/Subnet select a random network for your VPN from Private IP ranges (https://en.wikipedia.org/wiki/Private_network)
  12. Under DNS Server you can type your preferred DNS server.
    wireguard_vpn_server
  13. Once finished click Add

Now let’s create configuration files for your devices.
Each device should have it’s own configuration file.

  1. Under Clients click Add Client
  2. Click Manual
  3. Under Name you can define a name of the device/user
  4. Under Interface IP you can define a static VPN IP for that device/user
  5. If you have any Remote Networks on the Client side that you would like to add routes to, you can use the Remote Client Networks to add them.
  6. Finally under Configuration file click Download and press Add
  7. wireguard_vpn_client

You can now import that configuration file to your WireGuard VPN Client of your choice and connect to your VPN.
Official WireGuard VPN Clients can be found here: https://www.wireguard.com/install/

If you’ve found my post helpful, I’d love it if you bought me a coffee! ☕😊

Buy Me A Coffee

Leave a Comment

Your email address will not be published. Required fields are marked *