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 doing virtualhosts in Zorp
    #
    
    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 MyHttp(HttpProxy):
    	def setServerAddr(self, host, port):
    		if host == 'www1.domain.hu':
    			self.session.setServer(SockAddrInet('1.2.3.4', 80))
    		elif host == 'www2.domain.hu':
    			self.session.setServer(SockAddrInet('2.3.4.5', 80))
    
    def virtualhost():
    	Service('http', MyHttp, router=InbandRouter(), snat=ForgeClientSourceNAT())
    	Listener(SockAddrInet('3.4.5.6', 8080), 'http')