473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

python for windows internet filter / firewall

Greetings,

I'm interested in a simple content-based internet firewall/filter,
similar to dansguardian (http://dansguardian.org/), but written in
python, and for windows. I assumed such a project would already exist,
but my searches on freshmeat, and google turned up empty. I would be
interested in starting my own project if necessary, so I have two
questions:

1) Does any one no of such a project?

2) Is this even reasonable in python and how might I get started? (e.g.
win32 COM?)

Thanks much
--
matthew

Jun 29 '06 #1
5 2962
> 2) Is this even reasonable in python and how might I get started? (e.g.
win32 COM?)


Don't know much (not to say nothing) about windows firewalling & the
interfaces one needs to talk to them.

But _what_ I know is: a firewall needs to be fast. The big guys in
networking put a lot of effort into pushing as much package processing as
possible into the hardware-layer.

And as much as I love python - I do not see it here, beyond a
proof-of-concept.

Diez
Jun 29 '06 #2
I thought speed might be an issue. At this point I'm not interested in
much more than toying around, so *if* there's a way to do it, I'd like
to explore the options.

--
matthew

Diez B. Roggisch wrote:
2) Is this even reasonable in python and how might I get started? (e.g.
win32 COM?)


Don't know much (not to say nothing) about windows firewalling & the
interfaces one needs to talk to them.

But _what_ I know is: a firewall needs to be fast. The big guys in
networking put a lot of effort into pushing as much package processing as
possible into the hardware-layer.

And as much as I love python - I do not see it here, beyond a
proof-of-concept.

Diez


Jun 29 '06 #3
th*****@gmail.com wrote:
Greetings,

I'm interested in a simple content-based internet firewall/filter,
similar to dansguardian (http://dansguardian.org/),
Firewall and filter are two things totally separated!

- If you want to do something like a "page filtering", like dansguard
and squidguard, you can simple do it with python, because you have to
act like a proxy that leave of not visit a page.
- If you have to do a firewall... I think you can't, especially if you
are on win. Take a look at wipfw (wipfw.sf.net) that do what you want
but written in python,
Of course :)

and for windows.

Why? All that work with networking (and not only that) work better with
*nix OS!
I assumed such a project would already exist,
Firewall I don't think, and the same for the filtering (I know only
something like a plugin for squid, so for *nix platform).
but my searches on freshmeat, and google turned up empty. I would be
interested in starting my own project if necessary, so I have two
questions:

1) Does any one no of such a project?

2) Is this even reasonable in python and how might I get started?
(e.g. win32 COM?)
win32COM for do what?

You can do it in not so difficult manner:
Take twisted and its proxy class, make some outline code (for filter the
pages) and enjoy! (work also on win)

Thanks much -- matthew

P.s. Don't forgot to share your code, when it'll work :)

Bye,
Michele
Jun 30 '06 #4
Thanks for a detailed reply.
Firewall and filter are two things totally separated!
Sorry for being to general. I want to create a filter like
dansgaurdian. I was thinking of it also as a firewall because is
restricts traffic on a port based on content, but you're correct, they
aren't the same thing at all.
Take a look at wipfw (wipfw.sf.net) that do what you want
Thanks for the tip I'll check it out.
And for windows. Why? All that work with networking (and not only that) work better with
*nix OS!
Yes you are correct again. I am infact working on linux right now, and
it is my os of choice. How ever I need to deploy this on M$win :(
win32COM for do what?
My knowledge of COM is miniscule, but I assumed it has a low level
interface for packet filtering.
You can do it in not so difficult manner:
Take twisted and its proxy class, make some outline code (for filter the
pages) and enjoy! (work also on win)


Proxy would be an easy way, but I wanted to do it at a lower level.

Thanks again.
--matthew

Jun 30 '06 #5
th*****@gmail.com wrote:
Thanks for a detailed reply.

I thing that now we are becoming OT... :)
because is restricts traffic on a port based on content, but you're
correct, they aren't the same thing at all.

So, what you want to do? Open and close a destination IP (domain),
following what the user see, with a firewall? It's so hard to do, and it
doesnt' sound like a good think. This is the work of a proxy, not of a
firewall.
win32COM for do what?


My knowledge of COM is miniscule, but I assumed it has a low level
interface for packet filtering.


Yes, but you have to create a dll that work at low level and has an low
level features... Something like that wipfw do: create a .sys/.vxd (if I
remember correctly) that in your case are the dll and after with an exe
(that are the python program) that teach the rules... Very bas idea, for me!
You can do it in not so difficult manner: Take twisted and its
proxy class, make some outline code (for filter the pages) and
enjoy! (work also on win)


Proxy would be an easy way, but I wanted to do it at a lower level.


But you _can't_ with python. How you create a .sys/.vxd file? Also that
has only few kb program? And don't such more than few kb memory?

Keep the proxy way or switch to another language :)
Thanks again. --matthew


Michele
Jun 30 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Raymond Hettinger | last post by:
QOTW: "Python seems to encourage and reward incremental effort, and it leads one to explore extensions and improvements to programs because the language makes it relatively easy to see how to do...
5
by: M. Laymon | last post by:
I just installed Python 2.3.3 under Windows XP professional. After I did, my wife tried to access her email using Outlook Express and got the error messages: Your server has unexpectedly...
10
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
5
by: Andrea Vincenzi | last post by:
Help me please, I'm totally stuck! My Visual Studio 2003 debugger stopped working after I installed Windows XP Service Pack 2. Here is what happens (with any project, even a "Hello, world"...
2
by: Jeffrey Tate via DotNetMonster.com | last post by:
The error is: The proxy settings on this computer are not configured correctly for Web discovery. MSDN states that this is caused by: This error appears in the Add Web Reference dialog box if...
12
by: Paul Tillotson | last post by:
At my company we are looking at deploying clients for our client/server app outside our firewall, which will then require our postgres box to be internet-accessible. Does anyone out there have...
7
by: JAG CHAN | last post by:
Friends, As I had written earlier, I am trying to learn Python. I chose IDLE as an editor to learn Python. Now I find that it is an online editor. It is not possible for me to be always on online...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 431 open ( +3) / 3425 closed ( +8) / 3856 total (+11) Bugs : 916 open (-23) / 6273 closed (+44) / 7189 total (+21) RFE : 244 open...
6
by: John (Z R) L | last post by:
Hi all, I am very new to programming, and I chose to study the Python language before C++. I am currently using the Wikibooks "Non-Programmer's Tutorial for Python", and am up to the section "Who...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.