Windows Defender Firewall: Allow authenticated IPsec bypass: registry value BypassFirewallComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\IPSec\ICFv4
- Policy ID
- WF_AuthenticatedBypass_Name
- Scope
- Computer Configuration
- Supported on
- At least Windows XP Professional with SP2
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Network › Network Connections › Windows Defender Firewall
Registry
BypassFirewall
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Define IPsec peers to be exempted from firewall policy:
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\ICFv4] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "BypassFirewall"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\IPSec\ICFv4" /v "BypassFirewall" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\IPSec\ICFv4' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\IPSec\ICFv4' -Name 'BypassFirewall' -PropertyType String -Value '<enter value>' -Force | Out-Null