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 use HttpProxyURIFilter and RegexpFileMatcher to
    # filter unwanted URL-s in HTTP with Zorp
    #
    See also http.black and http.white
    # This policy implements a transparent http proxy, which blocks all
    # urls ending to "exe", but the ones which under http://www.domain.hu/download
    # see http.black and http.white for the actual black- and whitelist
    #
    # based on example provided by Kosa Attila 
    #
    
    from Zorp.Core import *
    from Zorp.Http import *
    from Zorp.Matcher 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 IDHttp(HttpProxyURIFilter):
    	matcher=RegexpFileMatcher('/etc/zorp/http.black', '/etc/zorp/http.white')
    	def config(self):
    		HttpProxyURIFilter.config(self)
    		self.transparent_mode = 1
    
    def regexp():
    	
    	Service("intra_http", IDHttp)
    	Listener(SockAddrInet("192.168.1.1", 50080), "intra_http")