[rsyslog-notify] Forum Thread: Re: TCP bind on localhost only - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Mon Feb 16 14:41:18 CET 2015
User: dlang
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25252#p25252
Message:
----------
no, it's not possible to specify listening on particular interfaces.
The Operating System calls to setup a connection have no concept of an
interface, how packets arrive on the box is completely different from how
they are processed. Software has the option of listening to any one IP
address, with the special address 0.0.0.0 meaning "anything"
You could have your startup script lookup the IP address(s) of a particular
interface and write out a chunk of config that you then include into your
rsyslog.conf at the appropriate place.
But it's probably far simpler to just have rsyslog listen on IPANY
(0.0.0.0) and configure iptables rules to block traffic from interfaces you
don't want to accept traffic.
More information about the rsyslog-notify
mailing list