Skip to content

Instantly share code, notes, and snippets.

@CallMarl
Last active October 1, 2021 10:51
Show Gist options
  • Save CallMarl/2e6e8c768d79db58e42ddfac2cbc97f4 to your computer and use it in GitHub Desktop.
Save CallMarl/2e6e8c768d79db58e42ddfac2cbc97f4 to your computer and use it in GitHub Desktop.
Enable UDP encapsulation for L2TP/IPsec VPN

FIX MISSED CONNEXION

From the client, if the VPN serveur type is L2TP/IPsec execute as admin the command bellow to enable UDPEncapsulation then restart computer.

# Enable UDPEncapsulation
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f
@CallMarl
Copy link
Author

CallMarl commented Oct 1, 2021

Run powershell as admin

  • shortcute : Win + Q
  • type powershell
  • execute as admin

Capture d’écran 2021-10-01 124801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment