hi all,
I want to log firewall actions from my mi router 4a giga running openwrt.
I edit WAN => REJECT zone (input: reject, output: accept, forward: reject) and I enabled Enable logging on this zone option and changed Limit log messages to 10/minute.
I 've running rsyslog server in raspberry pi 4 . I configured openwrt to send logs to rpi4.

after done these changes at WAN zone, I tried to make a ssh connection to openwrt from port 5555 which is not exist in firewall rules. of course it was rejected bu there were no firewall logs at raspberry pi.
what am I missing?
yes
from pc (192.168.2.10) (can SSH from port 22)
yes, I can catch router logs from rpi4
no. router wan is 192.168.3.2 and lan is 192.168.4.1, rpi4 is 192.168.2.3 but static routes are defined in router to 192.168.2.0 network.
yes. rsyslog port 514 tcp and udp are opened from rpi4.
here is my network topography;
I have no clue what router eth port is connected to the wan interface but i guess eth0.
192.168.2.10 goes to router port eth1 so you didn’t tried logging in from wan? And if so you cant get a log output from wan that doesn’t exist.
openwrt wan is connected to edgerouter's eth2 port. modem is connected to edgerouter's eth0 (wan) port.