Sziasztok, Probalkozom a Zorppal, 0.7.14.deb. CVS-t probaltam atnyomni plugon. Megindul az adatfolyam, majd nehany file utan elhagyja magat: Feb 11 08:25:52 fortnox zorp-cvs[3529]: TypeError: not enough arguments; expected 6, got 5 Feb 11 08:25:52 fortnox zorp-cvs[3535]: (zorp@fortnox/intra_cvs:4/plug): proxy_stop, module=plug A bellitasokon nem igazan valtoztattam, a samples alapjan hasznalom: En rontok el valamit? Imre. Policy.py: from Zorp.Zorp import * from Zorp import Zorp from Zorp.Zone import InetZone from Zorp.Service import Service from Zorp.SockAddr import SockAddrInet from Zorp.Chainer import TransparentChainer, DirectedChainer, InbandChainer, FailoverChainer from Zorp.Plug import PlugProxy from Zorp.Listener import Listener Zorp.firewall_name = 'zorp@fortnox' InetZone("site-net", "192.168.0.0/16", # list of allowed outbound services, '*' matches anything outbound_services=["intra_cvs"], # list of allowed inbound services, '*' matches anything inbound_services=[]), InetZone("local", "127.0.0.0/8", inbound_services=["*"], outbound_services=[]), InetZone("internet", "0.0.0.0/0", inbound_services=["*"], outbound_services=[]) class IntraCvs(PlugProxy): def config(self): # uncommenting this would make this plug one-way only (server->client) #self.copy_to_server = FALSE # same but client->server copying would only be performed #self.copy_to_client = FALSE self.packet_stats_interval = 100 def startUp(self): """ startUp is called after configuration, but before any data is transferred. """ # this is empty now pass def shutDown(self): """ called just before terminating the proxy. """ pass def packetStats(self, dir, client_bytes, client_pkt, server_bytes, server_pkt): """ plug is sending this event after self.packet_stats_interval number of packets had been transferred. """ # report traffic information message(0, "server->client: packet=%d, bytes=%d, bandwidth=%f" % (client_pkt, client_bytes, self.bandwidth_to_ client)) message(0, "client->server: packet=%d, bytes=%d, bandwidth=%f" % (server_pkt, server_bytes, self.bandwidth_to_ server)) return 1 def init(name): debug(0, "Policy init, name=%s" % name) # create services Service("intra_cvs", TransparentChainer(), IntraCvs) # bind services to listeners # you'll need the packet filter redirect these connections, and # to protect transparent listeners, since if you connect to # a transparent listener directly, Zorp reconnects to itself. Listener(SockAddrInet("192.168.3.1", 52401), "intra_cvs") debug(0, "Policy bootstrap done...");