Windows FW | Command |
disable | netsh advfirewall set domainprofile state off |
enable | netsh advfirewall set domainprofile state on |
block it all | netsh advfirewall set domainprofile firewallpolicy blockinboundalways,blockoutboundalways |
restore default | netsh advfirewall reset |
restrict an app | netsh advfirewall firewall add rule name="secure" dir=in action=deny program="c:\program files\app.exe" enable=yes |
allow app to range of IP's | netsh advfirewall firewall add rule name="secure" dir=in action=allow program="c:\program files\app.exe" enable=yes remoteip=206.13.28.12,LocalSubnet profile=domain |
3/26/2015
Windows Firewall Command Line
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment