Page MenuHomeFreeBSD

Add option to syslogd(8) to supress adding "Forwarded from" string for forwarded remote messages
Needs ReviewPublic

Authored by sergey_akhmatov.ru on May 3 2018, 1:26 PM.

Details

Reviewers
None
Group Reviewers
manpages
Summary

When forwarding messages received from remote host syslogd(8) adds "Forwarded from" string to messages unconditionally. It may be undesired.
Inspired by IBM syslogd option -n ( https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.cmds5/syslogd.htm ) I would like to add similar option to BSD syslogd.

I had hard time choosing option name, would like to hear any suggestions.

Test Plan

add "*.* @<remote_ip>" entry to syslog.conf
start "syslogd -a 0/0:*" to receive remote messages
send message with logger(1) from remote host.
ensure that messages are forwarded, "Forwarded from" string is appended before hostname

Repeat with -t option
Ensure "Forwared from" is supressed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Unit Tests Skipped