I have a linux bridge with three interfaces, e.g. tap0, tap1 and tap2. What I would like to do is to modify the standard bridge behavior in the following way:
If a L2 broadcast is originated from tap0 then this should only be forwarded to tap2 (tap1 should drop it).
If a L2 broadcast is originated from tap1 then this should only be forwarded to tap2 (tap0 should drop it).
If a L2 broadcast is originated from tap2 then this should be forwarded to tap0 and tap1 as normal bridges do.
Is it possible to control bridging behavior in this way in linux?
Cheers
Daniel
Look at ebtables which control forwarding for Linux bridges: