[zorp] zorp on a bridge

Tito Flagella zorp@lists.balabit.hu
Sat, 29 Mar 2003 17:58:57 +0100 (CET)


On Thu, 27 Mar 2003, Robert Penz wrote:

> Hi!
> 
> I'm trying to setup zorp on an bridge, my problem is that I get this error 
> messages
> 
> Mar 27 14:19:51 debian intern[3197]: (noname/nosession): Verbosity level: 3
> Mar 27 14:19:51 debian extern[3207]: (noname/nosession): Verbosity level: 3
> Mar 27 14:19:51 debian intern[3197]: (noname/nosession): bind() failed; 
> error='No such file or directory'
> Mar 27 14:19:51 debian extern[3207]: (noname/nosession): bind() failed; 
> error='No such file or directory
> 

I had the same error due to lackness of the /var/run/zorp directory. 
At least with my configuration zorp needed to do an udp socket there.

Try to run the two zorp instances with strace as follows:

strace /usr/lib/zorp/zorp --as intern -B 1.1.1.1 --verbose 3 -p 
/path/to/your/instances-config -l >& zorp.log

Then search for your error, and hopefully you will find what's wrong 
there. 

> my configs
> 
> instances.conf:
> 
> intern -v3 -p /etc/zorp/policy.py --autobind-ip autobind='1.1.1.1'
> extern -v3 -p /etc/zorp/policy.py --autobind-ip autobind='1.1.1.2'

Are you sure about the autobind syntax? We are using "-B 1.1.1.1", from 
the usage info it would seem that you should use "--autobind-ip 1.1.1.1"

...

> and one question I also have is: Do I really need to do that via 
> dummy devices? or is there a better way?

We are now using one of the server's ip, and I didn't observe any 
difference from using a dummy interface.

Hope it helps,

tito.