I enabled logging on the "outside (aka "wan") firewall zone, and I see that the packets dropped by OpenWRT are logged to the kernel log and to the system log in OpenWRT:
[70536.118709] DROP outside in: IN=eth0 OUT= MAC=00:01:c0:19:XX:XX:00:01:5c:67:XX:XX:08:00 SRC=184.108.40.206 DST=73.237.XXX.XX LEN=40 TOS=0x00
Wed Oct 21 16:37:57 2020 kern.warn kernel: [70959.000404] DROP outside in: IN=eth0 OUT= MAC=00:01:c0:19:XX:XX:00:01:5c:67:XX:XX:08:00 SRC=220.127.116.11 DST=73.237.XXX.XX LEN=44 TOS=0x00 PREC=0x00 TTL=34 ID=9678 PROTO=TCP SPT=12557 DPT=21290 WINDOW=1024 RES=0x00 SYN URGP=0
I have a few questions:
The source IP addresses of dropped packets' messages logged in the Kernel Log do not match source IP addresses of dropped packets' messages logged in the System Log. It looks like some such messages are logged to the Kernel Log, while other such messages are logged to the System Log. I haven't been able to correlate one single source IP of the dropped packets messages between the two logs.
Regardless of the Log Output Level Set in LuCI > System > Logging : Log Output Level, none of the dropped packets show up in the syslog server. The syslog server does receive syslog messages from OpenWRT, just not the messages with DROP in them. Why?
Is it possible to reformat the output sent by OpenWRT to a remote host (syslog server)? If so, where is this done?