I'm experimenting with using the Windows 2008 R2 firewall to block external IP addresses from accessing one of our public facing servers. I turned on the firewall and allowed all incoming public connections as a default with the intent to block those who were undesirable (hacking attempts, etc.).
I entered the following test netssh command at a command prompt:
netssh advfirewall add rule name="Blocked" dir=in action=block remoteip=188.8.131.52/22
And got this as a result:
The following command was not found: advfirewall add rule name=Blocked dir=in action=block remoteip=184.108.40.206/22
This is under Windows 2008 R2 standard.
Once this does work, if I wanted to have multiple remote IP addresses, how would I do that? Can I add them to an existing rule, or do I have to make a new rule each time?