[zorp-hu] IntraHTTP HOGYAN? ;-]
Balazs Scheidler
bazsi@balabit.hu
Mon, 29 Jul 2002 19:47:16 +0200
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