On Mon, 17 Feb 2014, Andreas Mock wrote:
Hi all,
after hours of debugging a problem (rsyslog 5.8.10) and searching the docs and
google
I'm totally frustrated and want to ask you the following:
- I want to send log messages out to a remote syslog server => no problem
- But I don't know how to tell the sending side to use a certain IP address.
I have bound two IP addresses to one device and the IP address of the alias and
NOT the main interface is taken.
- Can someone explain the rules which IP address is taken and how I can
influence it?
when you say "which IP address is taken" do you mean the source IP address for
the packet?
If so, the answer is that unless you set things up otherwise with iptables
tricks, the source IP is going to be the IP of the interface picked by the
routing table to get to that destination, exactly the same way that the source
IP would be selected for SSH, your web browser, or just about every other piece
of software on your system.
David Lang
Some information:
- 'uname -n' is "test"
- host "test" resolves to main ip
- host "main ip" resolves to "test.full.domain"
- hostname resolves to "test"
- hostname -d resolves to "full.domain"
Best regards
Andreas Mock
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.