By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Python & firewall control (Win32)

P: n/a

Does anyone know of (personal/desktop) firewall that can be controlled via
Python, or a Python Firewall package, or even something like DAXFi but not
dormant ?

The XP native firewall appears to have an API, but I'm not convinced I want
to go that route unless it is relatively simple.

Google is not my friend in this instance.

TIA

Tim

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 16 Jun 2005, Tim Williams wrote:
Does anyone know of (personal/desktop) firewall that can be controlled
via Python, or a Python Firewall package, or even something like DAXFi
but not dormant ?

The XP native firewall appears to have an API, but I'm not convinced I
want to go that route unless it is relatively simple.


http://wipfw.sourceforge.net/

import os
def deny(src, dst, proto="all"):
cmd = "ipfw add deny " + proto + " from " + src + " to " + dst
os.system(cmd)

ipfw for Windows is technically in beta, but ipfw itself is rock solid.

tom

--
The few survivors on ousfg's side ended up in a monastery of immortal
monks who yearned for a life better than street-fighting social groups,
learning to grow extra hands and feet on the way to immortality.
-- Lyndsey Pickup
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.