L2TP IPSec VPN fails on Windows – Enable UDP encapsulation


Open up regedit and go to the following location


Create a DWORD32 entry, name it


and enter a value of 2. Save and Reboot.


You can optionally execute this command on an elevated prompt. Also reboot to apply.

REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f

Leave a Reply

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