Windows Defender Firewall: Allow ICMP exceptions
Pare-feu Windows Defender : autoriser les exceptions ICMP
Explanation
Defines the set of Internet Control Message Protocol (ICMP) message types that Windows Defender Firewall allows. Utilities can use ICMP messages to determine the status of other computers. For example, Ping uses the echo request message. If you do not enable the "Allow inbound echo request" message type, Windows Defender Firewall blocks echo request messages sent by Ping running on other computers, but it does not block outbound echo request messages sent by Ping running on this computer.
If you enable this policy setting, you must specify which ICMP message types Windows Defender Firewall allows this computer to send or receive.
If you disable this policy setting, Windows Defender Firewall blocks all the listed incoming and outgoing ICMP message types. As a result, utilities that use the blocked ICMP messages will not be able to send those messages to or from this computer. If you enable this policy setting and allow certain message types, then later disable this policy setting, Windows Defender Firewall deletes the list of message types that you had enabled.
If you do not configure this policy setting, Windows Defender Firewall behaves as if you had disabled it.
Note: If any policy setting opens TCP port 445, Windows Defender Firewall allows inbound echo requests, even if the "Windows Defender Firewall: Allow ICMP exceptions" policy setting would block them. Policy settings that can open TCP port 445 include "Windows Defender Firewall: Allow file and printer sharing exception," "Windows Defender Firewall: Allow remote administration exception," and "Windows Defender Firewall: Define inbound port exceptions."
Note: Other Windows Defender Firewall policy settings affect only incoming messages, but several of the options of the "Windows Defender Firewall: Allow ICMP exceptions" policy setting affect outgoing communication.
Définit l'ensemble de types de messages ICMP (Internet Control Message Protocol) que le Pare-feu Windows Defender autorise. Des utilitaires peuvent utiliser les messages ICMP pour déterminer le statut d'autres ordinateurs. Par exemple, la commande Ping utilise le message de demande Echo. Si vous n'activez pas le type de message « Autoriser les requêtes d'écho entrantes », le Pare-feu Windows Defender bloquera les demandes d'écho envoyées par la commande Ping exécutée sur d'autres ordinateurs, mais ne bloquera pas les demandes d'écho sortantes envoyées par la commande Ping exécutée sur l'ordinateur local.
Si vous activez ce paramètre de stratégie, vous devrez spécifier la liste des types de messages ICMP que le Pare-feu Windows Defender autorise l'ordinateur local à envoyer ou à recevoir.
Si vous désactivez ce paramètre de stratégie, le Pare-feu Windows Defender bloquera tous les types de messages ICMP entrants et sortants répertoriés dans la liste. Par conséquent, les outils qui utilisent les messages ICMP bloqués ne pourront pas envoyer ces messages à ou depuis cet ordinateur. Si vous activez ce paramètre de stratégie en autorisant certains types de messages, puis le désactivez ultérieurement, le Pare-feu Windows Defender supprimera la liste des types de messages que vous aviez autorisés.
Si vous ne configurez pas ce paramètre de stratégie, le Pare-feu Windows Defender se comportera comme si vous l'aviez désactivé.
Remarque : si un paramètre de stratégie ouvre le port TCP 445, le Pare-feu Windows Defender autorise les requêtes d'écho entrantes, même si le paramètre de stratégie « Pare-feu Windows Defender : autoriser les exceptions ICMP » les bloque. Les paramètres de stratégie qui peuvent ouvrir le port TCP 445 incluent notamment « Pare-feu Windows Defender : autoriser l'exception de partage de fichiers et d'imprimantes », « Pare-feu Windows Defender : autoriser l'exception d'administration à distance » et « Pare-feu Windows Defender : définir les exceptions de ports entrants ».
Remarque : les autres paramètres de stratégie du Pare-feu Windows Defender n'affectent que les messages entrants, mais plusieurs options du paramètre de stratégie « Pare-feu Windows Defender : autoriser les exceptions ICMP » affectent les communications sortantes.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsFirewall/WF_IcmpSettings_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow outbound destination unreachable
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowOutboundDestinationUnreachable' -Value 1 -Type DWord
# Allow outbound source quench
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowOutboundSourceQuench' -Value 1 -Type DWord
# Allow redirect
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowRedirect' -Value 1 -Type DWord
# Allow inbound echo request
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowInboundEchoRequest' -Value 1 -Type DWord
# Allow inbound router request
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowInboundRouterRequest' -Value 1 -Type DWord
# Allow outbound time exceeded
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowOutboundTimeExceeded' -Value 1 -Type DWord
# Allow outbound parameter problem
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowOutboundParameterProblem' -Value 1 -Type DWord
# Allow inbound timestamp request
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowInboundTimestampRequest' -Value 1 -Type DWord
# Allow inbound mask request
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowInboundMaskRequest' -Value 1 -Type DWord
# Allow outbound packet too big
# unchecked: 0
Set-ItemProperty -Path $k -Name 'AllowOutboundPacketTooBig' -Value 1 -Type DWordDisable
# Disable: WindowsFirewall/WF_IcmpSettings_Name_1
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsFirewall/WF_IcmpSettings_Name_1
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\IcmpSettings'
Remove-ItemProperty -Path $k -Name 'AllowOutboundDestinationUnreachable' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowOutboundSourceQuench' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowRedirect' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowInboundEchoRequest' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowInboundRouterRequest' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowOutboundTimeExceeded' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowOutboundParameterProblem' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowInboundTimestampRequest' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowInboundMaskRequest' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'AllowOutboundPacketTooBig' -ErrorAction SilentlyContinueOptions (10)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Allow outbound destination unreachableAutoriser la destination inaccessible sortanteWF_IcmpSettings_AllowOutboundDestinationUnreachable | Check boxboolean | AllowOutboundDestinationUnreachable | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow outbound source quenchAutoriser l’extinction de source sortanteWF_IcmpSettings_AllowOutboundSourceQuench | Check boxboolean | AllowOutboundSourceQuench | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow redirectAutoriser la redirectionWF_IcmpSettings_AllowRedirect | Check boxboolean | AllowRedirect | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow inbound echo requestAutoriser les requêtes d’écho entrantesWF_IcmpSettings_AllowInboundEchoRequest | Check boxboolean | AllowInboundEchoRequest | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow inbound router requestAutoriser les requêtes de routeur entrantesWF_IcmpSettings_AllowInboundRouterRequest | Check boxboolean | AllowInboundRouterRequest | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow outbound time exceededAutoriser le temps dépassé sortantWF_IcmpSettings_AllowOutboundTimeExceeded | Check boxboolean | AllowOutboundTimeExceeded | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow outbound parameter problemAutoriser le problème de paramètre sortantWF_IcmpSettings_AllowOutboundParameterProblem | Check boxboolean | AllowOutboundParameterProblem | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow inbound timestamp requestAutoriser les requêtes de datage entrantesWF_IcmpSettings_AllowInboundTimestampRequest | Check boxboolean | AllowInboundTimestampRequest | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow inbound mask requestAutoriser les requêtes de masque entrantesWF_IcmpSettings_AllowInboundMaskRequest | Check boxboolean | AllowInboundMaskRequest | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Allow outbound packet too bigAutoriser les paquets sortants trop grandsWF_IcmpSettings_AllowOutboundPacketTooBig | Check boxboolean | AllowOutboundPacketTooBig | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |