Setting up VPN with UDM and Windows

Are you one of those users who is running a Dream Machine Pro or Dream Machine SE, taking advantage of teleport on your mobile device and yearning for the day Ubiquiti decides to release a Windows App? Boy, that would be nice. Wouldn’t it?

Don’t fret though, Windows has native support for VPN and works just fine. It’s not just as “just push a botton” like Teleport is. See the steps below for setting this up with Windows 10 and 11!


Configuring the VPN settings in Unifi

The first thing you need to do is prepare your UDM for VPN connections.

Step 1: Login to Unifi (https://unifi.ui.com) and go to the Network application.

Step 2: Go to Settings > Teleport & VPN

Step 3: Under “VPN Server”:

  • Check “Enabled”
  • Add a new user under “User Authentication”
  • Take note of your IP Address***, Pre-shared Key, User and Password. You’ll need it for the Windows side of the configuration

Step 4: Toggle “Advanced Configuration” to “Manual”, then enable “Require Strong Authentication”

*** Note, if you have a dynamic IP address from your ISP, this can change over time. I recommend using a service like NoIP to get dynamic DNS for your system. Take a look at my DynamicDNS post for how to set that up with UDM.


Configuring Ubiquiti VPN on Windows 11

Step 1: Right click on your start menu, select Settings. Then choose Network & Internet > VPN settings

Step 2: Click “Add VPN”

Step 3: In the resulting window, enter the following configuration details, then click Save.

  • VPN Provider: Windows (built-in)
  • Connection Name: Whatever you want
  • Server name or address: The WAN IP address from Unifi or your dynamic DNS URL
  • VPN type: L2TP/IPsec with pre-shared key
  • Pre-shared key: The pre-shared key from Unifi
  • Type of sign-in info: User name and password
  • User name: The username you made in Unifi
  • Password: The password you made in Unifi

Step 4: Click connect to connect to the VPN.


Configuring Ubiquiti VPN on Windows 10

Step 1: Right click on your start menu, select Network Connections, then select “VPN”

Step 2: Click “”

Step 3: In the resulting window, enter the following configuration details, then click Save.

  • VPN Provider: Windows (built-in)
  • Connection Name: Whatever you want
  • Server name or address: The WAN IP address from Unifi or your dynamic DNS URL
  • VPN type: L2TP/IPsec with pre-shared key
  • Pre-shared key: The pre-shared key from Unifi
  • Type of sign-in info: User name and password
  • User name: The username you made in Unifi
  • Password: The password you made in Unifi

Step 4: Select your new connection and click “Connect”

Related Posts

2 thoughts on “Setting up VPN with UDM and Windows

Leave a Reply

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