3

I require a configuration of firewall which will allow me connection through only specific ip-address say 10.0.0.1 on all port ranging from 0-5555 and deny all other ip-addresses?

What will be the syntax of netsh firewall command to generate this type of rule on Windows 2008R2 machine?

snoop
  • 131
  • 1
  • 4

2 Answers2

1

You can use these commands:

netsh advfirewall firewall add rule name="My Trusted In" dir=in action=allow protocol=ANY remoteip=62.9.97.12

netsh advfirewall firewall add rule name="My Trusted Out" dir=out action=allow protocol=ANY remoteip=62.9.97.12

iwaseatenbyagrue
  • 3,688
  • 15
  • 24
teleios
  • 11
  • 1
0

this should work

    netsh advfirewall firewall set rule name="my rule" new remoteip=157.60.0.67
suraj jain
  • 119
  • 4