Skip to content

Windows Netsh Firewall

cpx January 21, 2013 1 min read Batch/BAT
C:\>netsh firewall show opmode Domain profile configuration (current): ------------------------------------------------------------------- Operational mode = Disable Exception mode = Enable Standard profile configuration: ------------------------------------------------------------------- Operational mode = Disable Exception mode = Enable Local Area Connection firewall configuration: ------------------------------------------------------------------- Operational mode = Enable

From this command output she confirms that Windows Firewall is currently disabled and needs to be enabled. To do this, Mary types the following command:

C:\>netsh firewall set opmode enable Ok.

Now she adds a port exception for the HTTP service:

C:\>netsh firewall add portopening TCP 80 HTTP enable subnet Ok.

http://www.windowsnetworking.com/articles-tutorials/windows-2003/Using-Netsh-Windows-Firewall.html

Be the first to comment

protected · no tracking

0 comments