"Ifj. Darvas Istvan" wrote:
sziasztok,
a lenti konfig mellett a Zorp-GPL miert produkalja nekem azt, hogy DirectedChainer-t nem hajlando beimportalni?
fgrep DirectedChainer /usr/share/zorp/pylib/Zorp/* Szal a http.py-ben van, es nagyon nem arra valo, amire hasznalni akarod. mert a router.py-ben lakik, es azt nem imortaltad.
policy.py ------------- from Zorp.Core import * from Zorp.Http import * from Zorp.Chainer import DirectedChainer
Ez nem kell, helyette: from Zorp.Router import *
Zorp.firewall_name = 'Zorp@FireWall'
InetZone("localnet", "192.168.1.0/24", inbound_services=[], outbound_services=["*"])
InetZone("internet", "0.0.0.0/0", inbound_services=["*"], outbound_services=["*"])
Ezeken is faragnek meg.
class IntraHttp(HttpProxy): def config(self): HttpProxy.config(self)
self.transparent_mode = 1
def Inet2Intra(): Service("intra_http", DirectedChainer(SockAddrInet("192.168.1.200", 80), forge_addr=1), HttpProxy)
Service("intra_http", IntraHttp, DirectedRouter(SockAddrInet("192.168.1.200", 80)))
Listener(SockAddrInet("195.38.103.209", 80), "intra_http")