[zorp] Zorp starting error
Fri, 26 Oct 2001 16:01:54 +0200
On Mon, Oct 22, 2001 at 02:43:19PM +0200, Ibrahim Cherri wrote:
> After installing zorp on a redhat Linux machine, I edited
> policy.py and invoked "zorpctl start", i always get the following error.
> >Traceback (innermost last):
> >File "/etc/zorp/policy.py", line 53, in ?
> > inbound_services=["*"]),
> >File "/usr/local/zorp/share/zorp/pylib/Zorp/Zone.py", line 548, in
> > Zone.__init__(self, name, addr, inbound_services, outbound_services,
> admin_parent, umbrella, InetDomain)
> >File "/usr/local/zorp/share/zorp/pylib/Zorp/Zone.py", line 432, in
> > self.address = domain(addr)
> >File "/usr/local/zorp/share/zorp/pylib/Zorp/Domain.py", line 117, in
> > self.ip = inet_aton(parts) & self.mask
> >TypeError: bad operand type(s) for &
> >(noname/nosession): Error opening policy file /etc/zorp/policy.py
> >zorp version 0.8.8 going down.
> I wonder if this had to do anything with the python interpreter,
> and how can I fix it.
you might have an old InetZone declaration. Can you show them (possibly with
the IP address part masked out) as a reference, here's a correct InetZone
the meaning of apostrophes and quotation marks is the same. The order of
parameters is as follows:
- zone name
- address range (network address/netmask)
- outbound_services/inbound_services access control, which services are
permitted into, and out of the zone
Other parameters are documented in the Python source file
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1