To recreate a mesh network topology, I like to connect multiple network namespaces. Each connection end is an interface in such a namespace.
Now I need to connect all end point interfaces in a namespace into one. Bridges come into mind, but they do not behave the way I need to, because the do routing on their own.
So I need to need to make the bridge to act as a hub and block communication between the interfaces of the bridge.
To configure the bridge to act as a hub:
ip link set "br0" type bridge stp_state 0 ip link set "br0" type bridge ageing_time 0 ip link set "br0" type bridge forward_delay 0
(this should cause all packets to be flooded to all other interfaces, except the sender)
But how do I block any traffic between the interfaces of the bridge?