EdgeRouter X VPN Windows 10 Fix

EdgeRouter X VPN Windows 10 Fix
Ubquiti EdgeRouter X

I had issues connecting to my EdgeRouter X L2TP/IPSec VPN. My Android and iOS devices could connect fine but my Windows 10 laptop wouldn't. Thanks to chewychewbacca for these instructions:

  1. Log on to the Windows client computer as a user who is a member of the Administrators group.
  2. Click Start, point to All Programs, click Accessories, click Run, type regedit, and then click OK. If the User Account Control dialog box is displayed on the screen and prompts you to elevate your administrator token, click Continue.
  3. Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
  4. On the Edit menu, point to New, and then click DWORD (32-bit) Value.
  5. Type AssumeUDPEncapsulationContextOnSendRule, and then press ENTER.
  6. Right-click AssumeUDPEncapsulationContextOnSendRule, and then click Modify.
  7. In the Value Data box, type ‘2’
  8. Click OK, and then exit Registry Editor.
  9. Restart the computer.

Reference UniFi Forum post