Skip to content

Commit

Permalink
gluon-ebtables-filter-multicast: relax multicast firewall rules
Browse files Browse the repository at this point in the history
Allow the transmission of a multicast packet as long as it is not
flooded through the whole mesh.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
  • Loading branch information
T-X committed Apr 11, 2018
1 parent 49de3d1 commit 8aa9534
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
if os.execute('batctl -v | grep -q "batman-adv: 2013.4"') ~= 0 then
rule ('MULTICAST_OUT -p IPv6 --ip6-dst ff02::1/128 -j DROP')
rule ('MULTICAST_OUT -p IPv6 --ip6-dst ff02::/ff0f:: -j mark --set-mark 0x4 --mark-target RETURN')
end

rule ('MULTICAST_OUT -j DROP')
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ uci:section('batman-adv', 'mesh', 'bat0', {
routing_algo = routing_algo,
multicast_mode = true,
multicast_fanout = 16,
noflood_mark = '0x4/0x4',
})
uci:save('batman-adv')

Expand Down

0 comments on commit 8aa9534

Please sign in to comment.