Hi-
I've been trying to get Zorp working for several days now and have run into a variety of problems. After struggling to get the last source version from the site properly compiled (we use a PaX-patched kernel and it took a while to get Zorp to compile with completely PIC) I've finally got a running zorp executable. Except that it chokes on my policy file. I've gone through the indentation and such, so to really test what was going on I set PYTHONPATH to the zorp/pylib directory and ran "python policy.py" which returned this:
Traceback (most recent call last):
File "policy.py", line 1, in ?
from Zorp.Core import *
File "/usr/local/share/zorp/pylib/Zorp/Core.py", line 31, in ?
from Zone import InetZone
File "/usr/local/share/zorp/pylib/Zorp/Zone.py", line 36, in ?
from Domain import InetDomain, Inet6Domain
File "/usr/local/share/zorp/pylib/Zorp/Domain.py", line 37, in ?
from SockAddr import SockAddrInet, inet_ntoa, inet_aton, htonl, ntohl
ImportError: cannot import name htonl
Shouldn't these be coming from the Python 'socket' anyways? When edited Domain.py to import everything by ScokAddrInet from socket, then ran it again I get this error:
Traceback (most recent call last):
File "policy.py", line 1, in ?
from Zorp.Core import *
File "/usr/local/share/zorp/pylib/Zorp/Core.py", line 32, in ?
from Service import Service
File "/usr/local/share/zorp/pylib/Zorp/Service.py", line 53, in ?
from Router import TransparentRouter
File "/usr/local/share/zorp/pylib/Zorp/Router.py", line 36, in ?
from Zorp import setupDirectedRouter
ImportError: cannot import name setupDirectedRouter
With grep I can't find "setupDirectedRouter" being defined anywhere in the Python files. And of course Zorp still won't start, with the error "Error loading initial policy, exiting;"
Was I correct to make the first change? How can I get rid of these errors and get Zorp running. (My policy.py is attached, just in case that's the problem).
Matt Hackett
Research Associate
MixZon Inc.
1033 SW Yamhill St.
Portland, OR 97201
(503) 222-1022