Top Windows Netsh AdvFirewall Firewall Commands

Block an IP address:

netsh advfirewall firewall add rule name="Block IP" dir=in action=block remoteip="1.2.3.4" enable=yes

Block multiple IP addresses:

netsh advfirewall firewall add rule name="Block IP" dir=in action=block remoteip="1.2.3.4,10.10.10.10" enable=yes

Block an entire process:

netsh advfirewall firewall add rule name="Block Skype" dir=in action=block program="C:\program\skype.exe" enable=yes

Change IP addresses to block on a rule:

netsh advfirewall firewall set rule name="Block IP" new remoteip="1.2.3.4,10.10.10.10"

Check if a rule exists:

netsh advfirewall firewall show rule name="testing1" verbose

Delete a rule:

netsh advfirewall firewall delete rule name="Block IP"

More information:

Netsh AdvFirewall Firewall Commands

More Related Posts