When logging to a remote machine ("*.* @syslog"), rsyslog also opens a local UDP port. This behviour is not correct.
When looking at the source code, I see that the variable "Forwarding" ist set, when a forwarding option is recognized. If "Forwarding" or "AcceptRemote" is set (line 6049 in syslogd.c), the UDP port is opened.
Without further investigation the code I think that the forwarding Flag is not really needed and should not be used to decide if the local port should be opened or not.
Line 6049 should be:
- Code: Select all
if (AcceptRemote) {
Regards
James


