From 06820d2220de8de65fcd4a2e84cdb9e6af6fab7d Mon Sep 17 00:00:00 2001 From: mtdcr Date: Mon, 23 Jan 2023 19:31:10 +0100 Subject: [PATCH] Sane defaults for remote syslog (#16300) The most commonly used transport for remote syslog is port 514/udp. It also is the only defined method for BSD syslog (RFC 3164). RFCs 5424+5425 specify an additional TLS transport via 6514/tcp, which does not seem to be supported by zigbee2mqtt, as evidenced by the lack of TLS-related configuration options in this area. RFC 6587 describes legacy uses of syslog over TCP, recommending against them. Port 123, the previous default, was probably used by accident and is reserved for NTP. | $ grep -w -e 123 -e 514 -e 601 -e 6514 /etc/services | ntp 123/udp # Network Time Protocol | shell 514/tcp cmd syslog # no passwords used | syslog 514/udp | syslog-tls 6514/tcp # Syslog over TLS [RFC5425] --- lib/util/settings.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/settings.schema.json b/lib/util/settings.schema.json index d19d149d5..1ee123062 100644 --- a/lib/util/settings.schema.json +++ b/lib/util/settings.schema.json @@ -511,13 +511,13 @@ "type": "number", "title": "Port", "description": "The port on the host that syslog is running on, defaults to syslogd's default port.", - "default": 123 + "default": 514 }, "protocol": { "type": "string", "title": "Protocol", "description": "The network protocol to log over (e.g. tcp4, udp4, tls4, unix, unix-connect, etc).", - "default": "tcp4", + "default": "udp4", "examples": [ "udp4", "tls4",