On 6/17/05, Tim Williams <[EMAIL PROTECTED]> wrote:
>
> > ----- Original Message -----
> > From: "Tom Anderson" <[EMAIL PROTECTED]>
> >
> re: http://wipfw.sourceforge.net/?page=home
>
> Tom, this looks good. I had it downloaded, installed and running some
> custom rules in under 5 minutes. Very simple and straightforward.
>
> > AIUI, you won't be stopping and restarting ipfw
>
> This is correct, the service doesn't appear to restart, the rule updates
> are actioned very quickly (instantaneous)
>
> I haven't had chance to try it integrated into a Python app, but it looks
> very promising,.
>
Tom, I found that controlling the firewall via popen3 is perfect, I
now have server applications that can firewall themselves when they
detect possible attacks or abuse from individual IPs, ranges etc
eg:
import win32pipe as W
#add a rule at position 100
i,o,e = W.popen3('C:\\ipfw\\bin\\ipfw add 100 allow IP from me to 192.0.0.1')
-or-
# list all rules
i,o,e = W.popen3('C:\\ipfw\\bin\\ipfw list')
-or-
#delete rule 100
i,o,e = W.popen3('C:\\ipfw\\bin\\ipfw delete 100')
Thanks again
--
http://mail.python.org/mailman/listinfo/python-list