Trying to figure out a way to do this:

netsh advfirewall firewall add rule name="ES 9500 (Block)" dir=in action=block protocol=TCP localport=9500

netsh advfirewall firewall add rule name="ES 9500 (Allow)" dir=in action=allow protocol=TCP localport=9500 remoteip=

Doesn't seem that it's possible as "Override block rules" requires specifying specific machines: http://technet.microsoft.com/de-de/library/dd734783(v=ws.10).aspx.

Any way to do this on Windows?


Unless you have another rule in your windows firewall or you have changed the default behavior of the incoming connections, ALL incoming connections will be blocked by default.

So you have to start with the allow rules for incoming connections. Also, try adding the enable argument like so

netsh advfirewall firewall add rule name="ES 9500" dir=in action=allow 
remoteip= protocol=TCP localport=9500 enable=yes
  • The enable switch doesn't make a difference but you're right that there is no need for the explicit block rule (which I don't think can be overridden). – Nariman May 2 '13 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.