Create ebtables chains with RETURN policy
authorDimitris Aragiorgis <dimara@grnet.gr>
Wed, 5 Mar 2014 11:03:33 +0000 (13:03 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Wed, 5 Mar 2014 11:03:33 +0000 (13:03 +0200)
commit8f7d1f1c43da7fb31577fba1136d1314cfaaf81f
treeab9006dfb977115edf9c9e1f4775956e34ed133a
parent96cefca522064fd16d1431718f1c8c1a8a35485e
Create ebtables chains with RETURN policy

This fixes inter-node private networks in case of multicast packets.
Multicast packets are forwarded to all interfaces bridged
on the bridge. Lets assume the following:

prv0 bridge with tap0, tap1, and eth1.
From tap0 comes a multicast packet.
We will see:
 forward IN=tap0 OUT=tap1
 forward IN=tap0 OUT=eth1
 input IN=tap0

In FORWARD chain we have:

 -i tap0 -j FROMTAP0
 -o tap0 -j TOTAP0
 -i tap1 -j FROMTAP1
 -0 tap1 -j TOTAP1

So the first packet will match the first rule. FROMTAP0 does not
drop it since the src MAC is correct and ACCEPTs it!

We fix this by changing the policy to RETURN.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
common.sh