Hello,
I’m using a RB5009 (ROS 7.2) with 3 bridges :
-brwan, for internet
-brlan, for my wired lan (192.168.1.0/24)
-brwifi, with an AP and my wifi connected devices (192.168.13.0/24)
lan and wifi can connect to the internet with a simple nat rule :
add action=masquerade chain=srcnat out-interface=br-wan to-addresses=0.0.0.0
routing between lan and wifi is automatically done. I can ping from my lan to a wifi device, and vice versa.
As I need to isolate wifi from the LAN, i’ve made a simple firewall rule to block traffic :
add action=drop chain=forward connection-state=invalid,new,untracked in-interface=br-wifi log=yes log-prefix=fwwifi out-interface=br-lan
So I still can established connection from my lan to my wifi (AP typically), but the wifi cannot communicate with my LAN, which is perfect.
Now, i’m having trouble with a specific case :
-one wifi device (192.168.13.3) send UDP (dstport 9898) packet to specific IP 224.0.0.50. I need thoses packets to propagate on my LAN. I can’t find a way to do it. Perfectly the packet should remain the same (same from IP, same destination IP).
I’ve had a new NAT rule :
add action=dst-nat chain=dstnat dst-address=224.0.0.50 dst-port=9898 log=yes log-prefix="lumi nat" protocol=udp src-address=192.168.13.3 to-addresses=192.168.1.5
I was expected that at least, packet would come to my LAN to the 192.168.1.5. The rule is hitted :
lumi nat dstnat: in:br-wifi out:(unknown 0), src-mac xx:xx:xx:xx:xx:xx, proto UDP, 192.168.13.3:4321->224.0.0.50:9898, len 163
But nothing else. My firewall does not have any rule that is hit, and my LAN network does not have any packet.
I’ve also seen that there are NAT rules in the bridge category but it does not do more.
I’ve also tried to “lie”, adding the 244.0.0.0/24 network to my address lit associated to the br-lan bridge. I was expecting my involved routing, but it seems not.
Any help appreciated ![]()