Listening syslog in two nics (eth0-eth1) in the same server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
juanmafer
Posts: 16
Joined: Wed Apr 06, 2016 4:45 pm

Listening syslog in two nics (eth0-eth1) in the same server

Post by juanmafer »

Hi!
I have two NICs with a different IP.
I need to listening the 514 port for both adapters and only listening the eth0.
It's posible?

My filter input is:
syslog {
type => 'syslog'
port => 514
host => '0.0.0.0'
}

Thks!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Listening syslog in two nics (eth0-eth1) in the same ser

Post by mcapra »

That should work, but if it doesn't you could configure two separate syslog inputs for each address:

Code: Select all

syslog {
type => 'syslog'
port => 514
host => '192.168.67.1'
}
syslog {
type => 'syslog'
port => 514
host => '192.168.67.2'
}
There's also additional considerations when listening on privileged ports like 514. I would suggest reviewing this document:
https://assets.nagios.com/downloads/nag ... Server.pdf
Former Nagios employee
https://www.mcapra.com/
juanmafer
Posts: 16
Joined: Wed Apr 06, 2016 4:45 pm

Re: Listening syslog in two nics (eth0-eth1) in the same ser

Post by juanmafer »

Thaks for the quickly answer.
I made the modifications but the problem continue.
Another idea?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Listening syslog in two nics (eth0-eth1) in the same ser

Post by mcapra »

You haven't described what the problem is yet. Could you tell me exactly what's going on?
Former Nagios employee
https://www.mcapra.com/
juanmafer
Posts: 16
Joined: Wed Apr 06, 2016 4:45 pm

Re: Listening syslog in two nics (eth0-eth1) in the same ser

Post by juanmafer »

I fixed the issue!!!!
We solved it by disabling the Reverse Path Forwarding in the file /etc/sysctl.conf, this was done setting to zero (0) the line
# Controls source route verification
net.ipv4.conf.default.rp_filter = 0
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Listening syslog in two nics (eth0-eth1) in the same ser

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Locked