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
Hi All! On 2003 Jul 02, Matt Hackett wrote:
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:
C part of Zorp export some class and function to python level. Because of this you get problems when you try to run policy.py outside of Zorp.
Shouldn't these be coming from the Python 'socket' anyways?
No. It's coming from codes written in C. Try to run zorp like this: /usr/lib/zorp/zorp --as internal_out --policy /etc/zorp/policy.py -v3 -l Of course change the path of zorp and policy.py to correct value. And send result to me please. -- Szalay Attila BalaBit IT Biztonságtechnikai Kft. tel:(36-1)-371-05-40 1116 Bp. Csurgoi ut 20/b fax:(36-1)-208-08-75 http://www.balabit.hu/
participants (2)
-
Matt Hackett
-
SZALAY Attila