" w/ dest = 192.168.40.0/24 are blocked by the automatically generated rule "Default deny rule""w/dest or from?
"Default allow LAN to any rule" ferers to trafic from LAN subnet, not anything arriving on LAN interface.Add firewall LAN rule to allow trafic from 192.168.40/24 subnet to LAN subnet.
dest = 192.168.40.0/24, which is another private net but not the same as net on LAN (= 192.168.30.0/24)