Dumb question:

Is there an equivalent of iptables on Windows? Could I install one via cygwin?

The real question: how can I accomplish on Windows what I can accomplish via iptables? Just looking for basic firewall functionality (e.g. blocking certain IP addresses)

link|improve this question
No such thing as a dumb question – Mark Henderson Nov 30 '10 at 23:07
feedback

3 Answers

up vote 15 down vote accepted

One way would be with the netsh command:

link|improve this answer
3  
+1 - netsh advfirewall is an absolute nessesary rule to learn for anyone scripting anything security related on Windows Server – Mark Henderson Nov 30 '10 at 23:06
exactly what i was looking for, thanks. – Aaron F. Nov 30 '10 at 23:28
feedback

There is a built-in firewall in XP, Server 2003 and later releases.

It has an API through which you can programatically change, enable, and disable rules.

link|improve this answer
I want something I can access programmtically -- add IP addresses to the firewall from within a script or software module. – Aaron F. Nov 30 '10 at 22:51
feedback

WIPFW looks very promising, especially if your after that iptables rule creation flavor.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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