[Twisted-Python] TCP wrapper support for twisted servers - solution !

Itamar Shtull-Trauring itamar at itamarst.org
Tue Sep 21 12:44:08 EDT 2004


On Tue, 2004-09-21 at 12:00, Eugene Coetzee wrote:

> If I "should not rely on transport" (I imagine this refers to IP 
> spoofing) - what is the most reliable way of getting  the client's IP 
> address from inside an instance of http.Request ? I would also like to 
> drop the illegal connection as quickly as possible - much sooner than 
> http.Request.process() happens.

That's how you do it. The comment is basically telling you that stuff
like TCP Wrappers is just a stopgap and not a real security measure :)







More information about the Twisted-Python mailing list