troubleshooting Question

windows 2008 R2 advanced firewall netsh syntax

Avatar of Ben Conner
Ben ConnerFlag for United States of America asked on
Windows Server 2008Software Firewalls
4 Comments1 Solution693 ViewsLast Modified:
Hi,

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=198.45.116.0/22

And got this as a result:
The following command was not found: advfirewall add rule name=Blocked dir=in action=block remoteip=198.45.116.0/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?

Thanks much!

--Ben
ASKER CERTIFIED SOLUTION
Chris

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros