testing remote hosts with different source address
list Lorenzo Chiavacci
Hello everyone, I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases. The hobbitping has a --source option but bbtest-net does not. I have thought of using the LOCATION tag in bb-hosts and have multiple instances of bbtest-net in hobbitlaunch.cfg but I do not find a way to have packets exit from the system with a different source address for all TCP tests as well as ping. Has anyone ever done such a setup? thank you. Lorenzo Chiavacci
list Geoff Hallford
Not the same but couldn't you just use different routes on the Hobbit box to get it to go out different interfaces? i.e. 192.168.1.1 to gw of interface1 IP, and 192.168.2.1 to gw of interface2 IP 'Nobody goes there anymore. It's too crowded.' --Yogi Berra On Wed, Jan 14, 2009 at 4:47 PM, Lorenzo Chiavacci
▸
<user-c7361b716a55@xymon.invalid>wrote:
Hello everyone, I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases. The hobbitping has a --source option but bbtest-net does not. I have thought of using the LOCATION tag in bb-hosts and have multiple instances of bbtest-net in hobbitlaunch.cfg but I do not find a way to have packets exit from the system with a different source address for all TCP tests as well as ping. Has anyone ever done such a setup? thank you. Lorenzo Chiavacci
list Lorenzo Chiavacci
Hello Geoff, Thanks for the idea but I have multiple IP addresses on the same network interface and I would like to send packets from the Hobbitmon server with a different source address for different servers in the bb-hosts file. Maybe what I am trying to do is not possible with the current version. Lorenzo
▸
-----Original Message-----
From: Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid]
Sent: Thu 1/15/2009 1:07 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] testing remote hosts with different source address
Not the same but couldn't you just use different routes on the Hobbit box to
get it to go out different interfaces? i.e. 192.168.1.1 to gw of interface1
IP, and 192.168.2.1 to gw of interface2 IP
'Nobody goes there anymore. It's too crowded.' --Yogi Berra
On Wed, Jan 14, 2009 at 4:47 PM, Lorenzo Chiavacci
<user-c7361b716a55@xymon.invalid>wrote:
Hello everyone, I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases. The hobbitping has a --source option but bbtest-net does not. I have thought of using the LOCATION tag in bb-hosts and have multiple instances of bbtest-net in hobbitlaunch.cfg but I do not find a way to have packets exit from the system with a different source address for all TCP tests as well as ping. Has anyone ever done such a setup? thank you. Lorenzo Chiavacci
list Johan Sjöberg
You could also use iptables to do source address translation. We do that in some cases where the hobbit server's default source address is not member of a VPN, but another interface's IP is. /Johan
▸
-----Original Message-----
From: Lorenzo Chiavacci [mailto:user-c7361b716a55@xymon.invalid] Sent: den 15 januari 2009 13:27
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] testing remote hosts with different source address
Hello Geoff,
Thanks for the idea but I have multiple IP addresses on the same network interface and I would like to send packets from the Hobbitmon server with a different source address for different servers in the bb-hosts file.
Maybe what I am trying to do is not possible with the current version.
Lorenzo
-----Original Message-----
From: Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid]
Sent: Thu 1/15/2009 1:07 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] testing remote hosts with different source address
Not the same but couldn't you just use different routes on the Hobbit box to get it to go out different interfaces? i.e. 192.168.1.1 to gw of interface1 IP, and 192.168.2.1 to gw of interface2 IP
'Nobody goes there anymore. It's too crowded.' --Yogi Berra
On Wed, Jan 14, 2009 at 4:47 PM, Lorenzo Chiavacci
<user-c7361b716a55@xymon.invalid>wrote:
Hello everyone, I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases. The hobbitping has a --source option but bbtest-net does not. I have thought of using the LOCATION tag in bb-hosts and have multiple instances of bbtest-net in hobbitlaunch.cfg but I do not find a way to have packets exit from the system with a different source address for all TCP tests as well as ping. Has anyone ever done such a setup? thank you. Lorenzo Chiavacci
list Lorenzo Chiavacci
Hello Johan thanks for your reply. That's another possibility as the problem I have is due to remote VPNs I have to use. The only doubt that remains is how to use the option --source in hobbitping and why it is only available with hobbitping and not in bbtest-net. Lorenzo
▸
-----Original Message-----
From: Johan Sjöberg [mailto:user-74c177c1220d@xymon.invalid]
Sent: Thu 1/15/2009 1:41 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] testing remote hosts with different source address
You could also use iptables to do source address translation. We do that in some cases where the hobbit server's default source address is not member of a VPN, but another interface's IP is.
/Johan
-----Original Message-----
From: Lorenzo Chiavacci [mailto:user-c7361b716a55@xymon.invalid]
Sent: den 15 januari 2009 13:27
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] testing remote hosts with different source address
Hello Geoff,
Thanks for the idea but I have multiple IP addresses on the same network interface and I would like to send packets from the Hobbitmon server with a different source address for different servers in the bb-hosts file.
Maybe what I am trying to do is not possible with the current version.
Lorenzo
-----Original Message-----
From: Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid]
Sent: Thu 1/15/2009 1:07 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] testing remote hosts with different source address
Not the same but couldn't you just use different routes on the Hobbit box to get it to go out different interfaces? i.e. 192.168.1.1 to gw of interface1 IP, and 192.168.2.1 to gw of interface2 IP
'Nobody goes there anymore. It's too crowded.' --Yogi Berra
On Wed, Jan 14, 2009 at 4:47 PM, Lorenzo Chiavacci
<user-c7361b716a55@xymon.invalid>wrote:
Hello everyone, I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases. The hobbitping has a --source option but bbtest-net does not. I have thought of using the LOCATION tag in bb-hosts and have multiple instances of bbtest-net in hobbitlaunch.cfg but I do not find a way to have packets exit from the system with a different source address for all TCP tests as well as ping. Has anyone ever done such a setup? thank you. Lorenzo Chiavacci
list Henrik Størner
▸
In <user-ad41d929c936@xymon.invalid> Lorenzo Chiavacci <user-c7361b716a55@xymon.invalid> writes:
I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases.
It's not in the current version, but I do have code for this in the current development version. There is a patch available at http://henrik.hswn.dk/srcaddr.patch - this should apply to the 4.2.2 version: - save the file to /tmp/srcaddr.patch - cd xymon-4.2.2 - patch -p0 < /tmp/srcaddr.patch - make - cp bbnet/bbtest-net ~xymon/server/bin/ With this patch, you can specify the source address using "@IP" in the test-spec in bb-hosts. E.g. 10.0.0.1 myhost # ftp at 172.16.1.1 ssh will cause the ftp-test to run with a source-address of 172.16.1.1 It doesn't support specifying the source for http/https tests. Regards, Henrik
list Josh Luthman
Now that is really cool. Thank you!
▸
On 1/19/09, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:In <user-ad41d929c936@xymon.invalid> Lorenzo Chiavacci <user-c7361b716a55@xymon.invalid> writes:I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases.It's not in the current version, but I do have code for this in the current development version. There is a patch available at http://henrik.hswn.dk/srcaddr.patch - this should apply to the 4.2.2 version: - save the file to /tmp/srcaddr.patch - cd xymon-4.2.2 - patch -p0 < /tmp/srcaddr.patch - make - cp bbnet/bbtest-net ~xymon/server/bin/ With this patch, you can specify the source address using "@IP" in the test-spec in bb-hosts. E.g. 10.0.0.1 myhost # ftp at 172.16.1.1 ssh will cause the ftp-test to run with a source-address of 172.16.1.1 It doesn't support specifying the source for http/https tests. Regards, Henrik
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Martin Ward
I may have misunderstood what was originally asked for but... I have a Hobbit server that connects to two completely different networks and monitors servers on both those networks. The interfaces on the Hobbit server are 10.0.0.2 and 192.168.10.2. Servers on the 10.0.0.0/24 network are configured to connect to the Hobbit server at 10.0.0.2 whilst servers in the 192.168.10.0/24 network are configured to connect to the same Hobbit server, only on 192.168.10.2 instead. In this scenario if the Hobbit server config has: 10.0.0.1 my10host # ftp ssh 192.168.10.1 my192host # ftp ssh When it tests an FTP connection to 10.0.0.1 the network will takes the shortest path and route out of 10.0.0.2. When it tests FTP on 192.168.10.1 routing will send the packets out of the 192.169.10.2 interface. The same for the ssh connection. Is this not what user-c7361b716a55@xymon.invalid wanted? |\/|artin
▸
-----Original Message----- From: Henrik "Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: 19 January 2009 10:12 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] testing remote hosts with different source address In <user-ad41d929c936@xymon.invalid> Lorenzo Chiavacci <user-c7361b716a55@xymon.invalid> writes:I am using Hobbitmon 4.2 and I would like to set up a system with >multiple IP addresses on network interface so that I can perform test >to some hosts through an IP address and other tests through another IP >address, and so on with multiple address aliases.It's not in the current version, but I do have code for this in the current development version. There is a patch available at http://henrik.hswn.dk/srcaddr.patch - this should apply to the 4.2.2 version: - save the file to /tmp/srcaddr.patch - cd xymon-4.2.2 - patch -p0 < /tmp/srcaddr.patch - make - cp bbnet/bbtest-net ~xymon/server/bin/ With this patch, you can specify the source address using "@IP" in the test-spec in bb-hosts. E.g. 10.0.0.1 myhost # ftp at 172.16.1.1 ssh will cause the ftp-test to run with a source-address of 172.16.1.1 It doesn't support specifying the source for http/https tests. Regards, Henrik
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Lorenzo Chiavacci
Hello Martin, what I asked for is what Henrik has introduced in the patch he mentioned. I have multiple IP addresses assigned to the same network interface and I cannot use the routing solution that you mention.I would like to use one of these addresses based on the host that I am testing . I will try the patch that Henrik mentions in his message after upgrading to 4.2.2 version. Thank you all for the replies. Lorenzo
▸
Ward, Martin wrote:I may have misunderstood what was originally asked for but... I have a Hobbit server that connects to two completely different networks and monitors servers on both those networks. The interfaces on the Hobbit server are 10.0.0.2 and 192.168.10.2. Servers on the 10.0.0.0/24 network are configured to connect to the Hobbit server at 10.0.0.2 whilst servers in the 192.168.10.0/24 network are configured to connect to the same Hobbit server, only on 192.168.10.2 instead. In this scenario if the Hobbit server config has: 10.0.0.1 my10host # ftp ssh 192.168.10.1 my192host # ftp ssh When it tests an FTP connection to 10.0.0.1 the network will takes the shortest path and route out of 10.0.0.2. When it tests FTP on 192.168.10.1 routing will send the packets out of the 192.169.10.2 interface. The same for the ssh connection. Is this not what user-c7361b716a55@xymon.invalid wanted? |\/|artin-----Original Message----- From: Henrik "Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: 19 January 2009 10:12 To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] testing remote hosts with different source address In <user-ad41d929c936@xymon.invalid> Lorenzo Chiavacci <user-c7361b716a55@xymon.invalid> writes:I am using Hobbitmon 4.2 and I would like to set up a system with multiple IP addresses on network interface so that I can perform test to some hosts through an IP address and other tests through another IP address, and so on with multiple address aliases.It's not in the current version, but I do have code for this in the current development version. There is a patch available at http://henrik.hswn.dk/srcaddr.patch - this should apply to the 4.2.2 version: - save the file to /tmp/srcaddr.patch - cd xymon-4.2.2 - patch -p0 < /tmp/srcaddr.patch - make - cp bbnet/bbtest-net ~xymon/server/bin/ With this patch, you can specify the source address using "@IP" in the test-spec in bb-hosts. E.g. 10.0.0.1 myhost # ftp at 172.16.1.1 ssh will cause the ftp-test to run with a source-address of 172.16.1.1 It doesn't support specifying the source for http/https tests. Regards, Henrik************************************************************************************* The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies. Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party. Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.