[zorp-hu] IntraHTTP HOGYAN? ;-]

Ifj. Darvas Istvan Fireking@DarviNET.Hu
Mon, 29 Jul 2002 19:17:25 -0700


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.