Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

windows firewall

Control applet

wf.msc

Reset

reset all rules and settings and turns firewall on blocking all inbound connections

netsh advfirewall reset

Export Settings

netsh advfirewall export "C:\temp\WF.wfw"

allow icmp

netsh advfirewall firewall add rule name="All ICMP V4" dir=in|out action=block protocol=icmpv4

set log

netsh advfirewall set currentprofile logging filename "C:\temp\firewall.log"

show rules

netsh advfirewall firewall show rule name=all

Disable/Enable Firewall

netsh advfirewall set allprofiles state on|off