sziasztok, a lenti konfig mellett a Zorp-GPL miert produkalja nekem azt, hogy DirectedChainer-t nem hajlando beimportalni? egyebkent azt szeretnem csinalni, hogy a tuzfal gep 80-as portjat at szeretnem loni a belso halo 200-as gepenek 80-as portjara egyenlore szures nelkul! ;-] Sajna meg elindulni sem hajlando! ;-( Mit cseszek el? egy-ket plusz info: 2.2.20-as kernel, a zorp-ot csomagbol tettem fel debian linux 3.0-ra. sziasztok, Istvan instances.conf ------------------ Inet2Intra --verbose=5 --policy /etc/zorp/policy.py policy.py ------------- from Zorp.Core import * from Zorp.Http import * from Zorp.Chainer import DirectedChainer 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=["*"]) class IntraHttp(HttpProxy): def config(self): HttpProxy.config(self) def Inet2Intra(): Service("intra_http", DirectedChainer(SockAddrInet("192.168.1.200", 80), forge_addr=1), HttpProxy) Listener(SockAddrInet("195.38.103.209", 80), "intra_http") syslog ---------- Jul 29 19:16:21 tractor Inet2Intra[3013]: Verbosity level: 5 Jul 29 19:16:22 tractor Inet2Intra[3013]: zorp version 1.4.4 starting up Jul 29 19:16:22 tractor Inet2Intra[3015]: (zorp/nosession): Traceback (innermost last): Jul 29 19:16:22 tractor Inet2Intra[3015]: (zorp/nosession): File "/etc/zorp/policy.py", line 3, in ? Jul 29 19:16:22 tractor Inet2Intra[3015]: (zorp/nosession): from Zorp.Chainer import DirectedChainer Jul 29 19:16:22 tractor Inet2Intra[3015]: (zorp/nosession): ImportError: cannot import name DirectedChainer Jul 29 19:16:22 tractor Inet2Intra[3013]: (zorp/nosession): Error opening policy file /etc/zorp/policy.py Jul 29 19:16:22 tractor Inet2Intra[3013]: zorp version 1.4.4 going down.
"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")
sziasztok, koszonom szepen a segitseget mukodik. En ugy vettem ki a referencia konyvbol, hogy a DirectedChainer valo erre a feladatra. na akor ugykodom tovabb! sziasztok, ----- Original Message ----- From: "Gabor Halasz" <halasz.g@nns.hu> To: <zorp-hu@lists.balabit.hu> Sent: Monday, July 29, 2002 10:45 AM Subject: Re: [zorp-hu] IntraHTTP HOGYAN? ;-]
Szal a http.py-ben van, es nagyon nem arra valo, amire hasznalni akarod.
On Mon, Jul 29, 2002 at 07:17:25PM -0700, Ifj. Darvas Istvan wrote:
policy.py ------------- from Zorp.Core import * from Zorp.Http import * from Zorp.Chainer import DirectedChainer
ez a sor nem kell, mar a Zorp.Core * beimportalja.
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=["*"])
class IntraHttp(HttpProxy): def config(self): HttpProxy.config(self)
def Inet2Intra(): Service("intra_http", DirectedChainer(SockAddrInet("192.168.1.200", 80), forge_addr=1), HttpProxy) Listener(SockAddrInet("195.38.103.209", 80), "intra_http")
a tobbi nagyjabol jonak tunik. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (3)
-
Balazs Scheidler
-
Gabor Halasz
-
Ifj. Darvas Istvan