How to send syslog via specific Ethernet port
I've been looking through the documentation, but I don't readily see a method to do this. I have two ethernet ports, eth0 and eth1 and I'd like to make syslog-ng only send logs via eth1 (both eth ports are on the same subnet). Is there a network() setting to do this? Thanks (This is in my home lab, not production) Craig L Bowser ____________________________ This email is measured by size. Bits and bytes may have settled during transport.
Hi, Well, it depends more on your routing settings than syslog-ng, but you can always set local-ip() to specify the local IP address which then you can bind to use a specific interface via routing rules. you might need source based routing for that though. -- Bazsi On Wed, Mar 21, 2018 at 6:59 PM, craig bowser <reswob10@gmail.com> wrote:
I've been looking through the documentation, but I don't readily see a method to do this.
I have two ethernet ports, eth0 and eth1 and I'd like to make syslog-ng only send logs via eth1 (both eth ports are on the same subnet). Is there a network() setting to do this?
Thanks
(This is in my home lab, not production)
Craig L Bowser ____________________________
This email is measured by size. Bits and bytes may have settled during transport.
____________________________________________________________ __________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/? product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Thanks. Will try that. On Thu, Mar 22, 2018, 12:28 AM Scheidler, Balázs < balazs.scheidler@balabit.com> wrote:
Hi,
Well, it depends more on your routing settings than syslog-ng, but you can always set local-ip() to specify the local IP address which then you can bind to use a specific interface via routing rules.
you might need source based routing for that though.
-- Bazsi
On Wed, Mar 21, 2018 at 6:59 PM, craig bowser <reswob10@gmail.com> wrote:
I've been looking through the documentation, but I don't readily see a method to do this.
I have two ethernet ports, eth0 and eth1 and I'd like to make syslog-ng only send logs via eth1 (both eth ports are on the same subnet). Is there a network() setting to do this?
Thanks
(This is in my home lab, not production)
Craig L Bowser ____________________________
This email is measured by size. Bits and bytes may have settled during transport.
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
participants (2)
-
craig bowser
-
Scheidler, Balázs