block a network port

Butternut Squash rxrx at yamama.com
Tue Aug 29 23:46:58 EDT 2006


abcd wrote:

> Larry Bates wrote:
>> This is not really a Python question.  Blocking ports is a function
>> of your firewall solution.
>> 
> 
> 
> ok, no of any python solutions?  or command-line firewalls?

So now you're question is how to write a firewall in python?

You can probably bind to all the ports and not open up any connections. That
would keep something else from using the port. Simple but effective.

Firewall software is a much better solution, though

Good luck.



More information about the Python-list mailing list