Nmap reports 'open|filtered'. I think it doesn't respond, but I would like rsyslog not to listen at all on 0.0.0.0 or ::. Only on the LAN interfaces and localhost.
Yes, in principle yes. I'm still struggeling with dhcp, but otherwise all services that are not required for WAN => LAN connectivity do not bind on the WAN interface.
@main-router:/etc/config> cat /etc/rsyslog.conf
#
# The preferred way to configure rsyslogd is now UCI.
#
# This file can be still used and will be included
# on top of the final configuration inside /var/etc/rsyslog.conf
#
# Example of default configuration:
#
#$ModLoad imudp
#$UDPServerAddress 127.0.0.1 ::1
#$UDPServerRun 514
#module(load="imuxsock")
#module(load="imklog")
module(load="imudp")
input(type="imudp" port="514" device="lo")
input(type="imudp" port="514" device="eth1")
input(type="imudp" port="514" device="br-lan")
(...)
Now, rsyslog binds to the desired interfaces, i.e. my LAN and localhost and not to the WAN interface.
nmap reports a closed port:
@monitor:~> nmap -sU thuis.dijkewijk.nl -p 514
Starting Nmap 7.93 ( https://nmap.org ) at 2025-03-14 13:32 UTC
Nmap scan report for thuis.dijkewijk.nl (86.92.61.120)
Host is up (0.021s latency).
Other addresses for thuis.dijkewijk.nl (not scanned): 2a02:a460:23f3:2::42:42
rDNS record for 86.92.61.120: 86-92-61-120.fixed.kpn.net
PORT STATE SERVICE
514/udp closed syslog
Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
@monitor:~> nmap -6 -sU thuis.dijkewijk.nl -p 514
Starting Nmap 7.93 ( https://nmap.org ) at 2025-03-14 13:32 UTC
Nmap scan report for thuis.dijkewijk.nl (2a02:a460:23f3:2::42:42)
Host is up (0.021s latency).
Other addresses for thuis.dijkewijk.nl (not scanned): 86.92.61.120
rDNS record for 2a02:a460:23f3:2::42:42: 2a02-a460-23f3-2--42-42.fixed6.kpn.net
PORT STATE SERVICE
514/udp closed syslog
Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
@monitor:~>