On Fri, 17 Jun 2005, Tim Williams wrote: > On Thu, 16 Jun 2005, Tom Anderson wrote: > > > On Thu, 16 Jun 2005, Tim Williams wrote: > > > > > Does anyone know of (personal/desktop) firewall that can be > > > controlled via Python > > > > http://wipfw.sourceforge.net/ > > Tom, many thanks for that. I'm actually looking for a firewall (packet > filter) I can control in realtime from a Python application,
I think you should be able to do that with wipfw ... > or even a Win32 equivalent of http://woozle.org/~neale/src/ipqueue/ . ... but i'm not sure about that! However, i'm not any sort of firewall or network expert, so it's possible that ipfw has some way to call out to external code to get decisions made (a sort of packet version of procmail's filter system) and that i don't know about it. > Though if I can stop & restart ipfw in a fraction of a second from > within a Python app then the result would be the same I guess. I will > have a play with it. AIUI, you won't be stopping and restarting ipfw - the ipfw command just modifies the ruleset being used by a continuously-running instance of the ipfw kernel module or daemon or whatever. How long it takes from starting the os.system call to the changes taking effect in the firewall, though, i have no idea - it might not be fast enough for you. I'd be surprised if it was more than a few hundred milliseconds, though, and really ought to be much, much faster than that. tom -- so if you hear a chaffinch out on the pull attempting a severely off-key version of "Sabotage" by the Beastie Boys then you're not actually going mad. -- http://mail.python.org/mailman/listinfo/python-list