As it is the machine with the most redundancy, there are many tasks that fall onto my XigmaNAS server. One of those tasks is serving as a syslog destination for other devices.
However, you cannot get that behavior by default as its syslog server will start in secure mode ([-ss](https://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8)
) without opening any socket. And there is no easy GUI way to make it accept syslog messages.
But here comes the power of postinit actions. Just add the following in System
⮞Advanced
⮞Command scripts
as the new PostInit
entry:
[type title=“PostInit”] sed -i -e ‘s^ -ss^ -a 192.168.0.0/16^’ /etc/rc.d/syslogd ; /etc/rc.d/syslogd restart [/type]
Your XigmaNAS server will now accept all messages coming from your local network.
PS: To troubleshoot settings, you can do the following on the command line:
[type title=“Terminal” prompt="$ "] $ kenv rc.debug=1 $ /etc/rc.d/syslogd restart [/type]