How can I set the port for the remote syslog log receiving host

How can I set the port for the remote syslog log receiving host? The target host is not using port 514, so how can I specify the target host’s port in IPFire? I modified the syslog.conf file, but it reverted after a restart. Thank you.

Did you read it?

Regards

However, the Remote logging option only allows for entering IP addresses and does not accept the “IP:port” format.

That is correct. The code is not set up for also taking a port. It only takes an IP address or an FQDN.

The only option you have then is to add it in manually in the syslog.conf file. When you have done that then you must not press the save button on the WUI Log Settings page, otherwise it will overwrite the syslog.conf file.

Also when you do a reboot you will need to manually correct the syslog.conf file again as it will be updated again with the contents from the /var/ipfire/logging/settings file which stores the status of the WUI Log Settings page.

3 Likes

Why not add a firewall rule to redirect the traffic from port 514 to the required port? Then you won’t have to fiddle with the config on each save or restart.

3 Likes

Perhaps this is a good solution. Thank you.