The Official Unofficial Zorp project
 
Overview| Examples| Bugs| FAQ | White papers | Download | Help wanted | SourceForge Project page | Filltable utility  
 
 
SourceForge.net: SF.net Project News: Zorp unofficial
  • zorp 2.0.9-6 has been released
  • iptables-utils zorp-unoff version has been released
  • New whitepaper, even more FAQs
  • Zorp whitepapers released, new FAQs
  • New tproxy versions
  • New Zorp version: get the DN
  • The best bughunter
  • Bughunting contest extended
  • Valentine day bughunting contest!
  • Site updates: FAQ, design
  • SourceForge.net: Project File Releases: Zorp unofficial
  • zorp 2.0.9-6 released (Mon, 01 Nov 2004 21:49:58 GMT)
  • zorp 2.0.9-6 released (Mon, 01 Nov 2004 21:40:56 GMT)
  • iptables-utils 1.21-1 released (Mon, 01 Nov 2004 21:19:42 GMT)
  • zorp 2.0.9-1 released (Sat, 12 Jun 2004 00:00:00 GMT)
  • zorplibll 2.0.26.24-1 released (Sat, 12 Jun 2004 00:00:00 GMT)
  • zorp zorp_2.0.8-1 released (Thu, 11 Dec 2003 00:00:00 GMT)
  • zorp zorp_2.0.7-2 released (Wed, 03 Dec 2003 00:00:00 GMT)
  • zorp zorp_2.0.7-1 released (Tue, 11 Nov 2003 00:00:00 GMT)
  • zorplibll zorplibll_2.0.26.23-1 released (Mon, 10 Nov 2003 00:00:00 GMT)
  • download
    
    #
    # An example of how to set the destination address/port explicitly
    # It work for any proxy, as it actually sets a session attribute
    #
    # All connections are redirected to 1.2.3.4:80
    
    from Zorp.Core import *
    from Zorp.Http import *
    
    Zorp.firewall_name = 'zorp@example.net'
    
    InetZone("site-net", "192.168.1.0/24", 
    	 outbound_services=["intra_http"],
    	 inbound_services=[])
    		
    InetZone("internet", "0.0.0.0/0",
             inbound_services=["*"],
             outbound_services=[])
    
    class SetDest(HttpProxy):
    	def config(self):
    		HttpProxy.config(self)
    		self.session.setServer(SockAddrInet('1.2.3.4', 80))
    
    def destination():
    	
    	Service("intra_http", SetDest)
    	Listener(SockAddrInet("192.168.1.1", 50080), "intra_http")