Autoriser le ping ICMP d'un PC sous windows 10
Rédigé par Admin
Aucun commentaire
Classé dans : Informatique
Enable ICMP Ping by Powershell
New-NetFirewallRule -DisplayName "Allow ICMPv4-In" `
-Protocol ICMPv4 -IcmpType 8 -Direction Inbound `
-Action Allow
Disable ICMP Ping
Get-NetFirewallRule -DisplayName "Allow ICMPv4-In" | Remove-NetFirewallRule
Check Current ICMP Rules
Get-NetFirewallRule | Where-Object {$_.DisplayName -like "*ICMP*"}
Enable ICMP Ping by Firewall
Open Firewall Settings
- Press Win + R, type control, and hit Enter.
- Navigate to System and Security > Windows Defender Firewall.
Create a New Inbound Rule
- Click Advanced Settings in the left panel.
- Select Inbound Rules → New Rule.
Configure ICMP Rule
- Choose Custom Rule → Next.
- Under Program, select All Programs → Next.
- In Protocol and Ports, select ICMPv4 (or ICMPv6 for IPv6).
- Click Customize, enable Specific ICMP Types, and select Echo Request.
Set Scope & Action
- For Scope, choose Any IP address or specify trusted IP ranges.
- Under Action, select Allow the connection.
Apply to Profiles & Save
- Check Domain, Private, and/or Public profiles.
- Name the rule, e.g., Allow ICMP Ping → Finish.
Disable ICMP Ping
- Open Windows Defender Firewall with Advanced Security (wf.msc).
- Go to Inbound Rules, locate your Allow ICMP Ping rule.
- Right-click → Disable Rule or Delete Rule.
Test PING IP V6
ping -6 2001:4860:4860::8888
Information was taken from this page : here