I would like to ask you a question:why do the clients from the two bridges see each other (i can ping from 192.168.30.X to 192.168.31.X and vica versa).
What is the connection/relation between theese two bridges? Is it the neighbor discovery and if not what does it do?
Here is my config: (PS.: ignore the firewall block rule, it is disabled, i just left it there, when i realized that somehow the two bridges "see each other")
Thank you! You were right!
And now if i would like, that the clients from 192.168.30.0 can see the clients from 192.168.31.0 do i need to make a NAT or a Firewall rule?
“i can ping from 192.168.30.X to 192.168.31.X and vica versa”
You can ping because your router routes traffic for network 30 from network 31 and vice versa. These (default) routes are defined under /ip route and are result of “connected networks”.
If you don’t want them to reach each other you need to filter in the forward table. Just enable the rule, add reverse too, and networks will be isolated.
And modify your nat rule to only masquerade when out-interface is WAN and source adress !=local.
Thank you for your time Sebastia!
As “ADahi” said, my NAT rules were not properly configured. I fixed that, now not only source address is given, but an outgoing interface too, like this:
Now there is no connection between the two LAN networks! (how it was intended)
And now came the question, how can i make the 30.X see the 31.X network.
i can still ping from LAN1 my LAN2 IP address. (from 192.168.30.111 → 192.168.31.5[this is the ip of the other bridge] and vice versa [from the 192.168.31.X → 192.168.30.5[this is the ip of other bridge]). I cannot pint any of the “leaseable” addresses, only the bridge interfaces IP address.
I dont think this should happen, or if yes, would you be so kind to explain why it does?
Thank you in advance!
Bridge addresses are local to RB, and traffic to them is bypassing forward firewall rules, as it’s being directed to RB itself during routing, which is after prerouting but before forward.