Xymon Mailing List Archive search

Bind Hobbit to Specific IP Address

list Thomas Pedersen
Fri, 03 Jun 2005 14:53:20 +0200
Message-Id: <user-5eb5a4a2cfa3@xymon.invalid>

I would like to have a --bind-address option to bbtest-net since this is 
an option I often need when running my bbtest-net server in a cluster. 
Currently I have to do src NATing with iptables for the resulting test 
to come from the right address.

Thomas

Henrik Stoerner wrote:
On Fri, Jun 03, 2005 at 02:10:26PM +0200, Thomas wrote:
 
Would it be simple to implement the same setting for bbtest-net ?
   
What do you mean, exactly ? bbtest-net doesn't listen for incoming
connections, it only establishes outbound connections.

If your Hobbit server has multiple IP's, the choice of which IP to use
for an outbound connection is usually best done by the OS, which is what
happens currently.

(It's not difficult to bind() a socket to a particular local address,
the real problem is figuring out how to define a configuration syntax
for it).


Henrik