L2TP VPN Works on Mac, but not Windows PC

There are so many VPN posts I thought I’d just start fresh for my circumstance:

I usually set up an L2TP VPN on the sites I install and have never had any issues, but I’ve also always used a Mac.

Now that an associate is going to be using a PC, I’m finding the setup is not as straightforward.

On the first site the Dream Machine Pro is in the DMZ of a Comcast Router which needs to operate for the cable boxes to work (we’re seeing this condition regularly so this config is standard these days).

- I am still using the public IP even though the UDMP’s WAN is a private address from the Comcast Router.

- My iPhone (and my associate’s) and my Mac connect almost instantly and without issue.

- The Windows 10 PC comes back with this error: “The network connection between your computer and the VPN server could not be established because the remote server is not responding. This could be because on of the network devices (e.g., firewalls, NAT, routers, etc) between your computer and the remote server is not configured to allow VPN connections. Please contact your Administrator or your service provider to determine which device might be the problem.”

I’m hoping the fact that the Mac has no issue helps to narrow down the problem somewhat. I appreciate any help/input on the matter!

Hello! Thanks for posting on r/Ubiquiti!

This subreddit is here to provide unofficial technical support to people who use or want to dive into the world of Ubiquiti products. If you haven’t already been descriptive in your post, please take the time to edit it and add as many useful details as you can.

Please read and understand the rules in the sidebar, as posts and comments that violate them will be removed. Please put all off topic posts in the weekly off topic thread that is stickied to the top of the subreddit.

If you see people spreading misinformation, trying to mislead others, or other inappropriate behavior, please report it!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

I had the same problem, running VPN on Windows Server but cannot connect to it from Windows 10, but Macs worked fine. You have to update registry.

Here is the solution: https://docs.microsoft.com/en-US/troubleshoot/windows-server/networking/configure-l2tp-ipsec-server-behind-nat-t-device

I could be wrong, sounds like you may know more than I. I’m having a similar experience with an L2TP vpn hosted on a synology nas. Worked great until a windows update. The little googling I did seemed to point to the Windows update as the cause. I was unable to find a fix or workaround. Since it’s only used periodically to connect to my home network from my work pc, I haven’t researched it further.

Have you tried the steps here?

https://www.australtech.net/how-to-configure-an-l2tp-vpn-on-a-ubiquiti-edge-router/

Search for “Windows 10 setting” in the article. I had to do that to get it working.

Something about the Strongswan VPN in the Unifi router firmware doesn’t like Windows 10 if there’s already another device connected from the same public IP. Are you trying to connect more than one at a time to the client VPN?

Here is how to get it tattoo’d

Problem solved! 11 months later haha. I don’t think Unifi will ever resolve this, or at least it won’t be the primary reason for a VPN firmware upgrade.