Hello 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 __init__ 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 __init__ self.address = domain(addr) File "/usr/local/zorp/share/zorp/pylib/Zorp/Domain.py", line 117, in __init__ self.ip = inet_aton(parts[0]) & 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. thanx Ibrahim
On Mon, Oct 22, 2001 at 02:43:19PM +0200, Ibrahim Cherri wrote:
Hello
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 __init__ 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 __init__ self.address = domain(addr) File "/usr/local/zorp/share/zorp/pylib/Zorp/Domain.py", line 117, in __init__ self.ip = inet_aton(parts[0]) & 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 statement: InetZone('internet', '0.0.0.0/0', outbound_services=[], inbound_services=['intra_HTTP']) 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 /usr/share/zorp/pylib/Zorp/Zone.py -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (2)
-
Balazs Scheidler
-
Ibrahim Cherri