Python & firewall control (Win32)

T

Tim Williams

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
 
T

Tom Anderson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,241
Messages
2,571,223
Members
47,860
Latest member
LoganF4991

Latest Threads

Top