Browse Source

gluon-mesh-batman-adv: filter out all packages between bat0 and local-port

Filtering by MAC address won't filter out multicast packages like router
solicitations, causing uradvd to send out router advertisements with
maximum frequency (every 3 seconds) in active meshes, even when no local
client is actually interested in the advertisements.

Fixes #1230
Matthias Schiffer 6 years ago
parent
commit
9324d18fee

+ 3 - 0
package/gluon-mesh-batman-adv/files/lib/gluon/ebtables/250-next-node

@@ -4,6 +4,9 @@ local next_node = site.next_node({})
 
 local macaddr = client_bridge.next_node_macaddr()
 
+rule('FORWARD --logical-out br-client -i bat0 -o local-port -j DROP')
+rule('FORWARD --logical-out br-client -i local-port -o bat0 -j DROP')
+
 rule('FORWARD --logical-out br-client -o bat0 -d ' .. macaddr .. ' -j DROP')
 rule('OUTPUT --logical-out br-client -o bat0 -d ' .. macaddr .. ' -j DROP')
 rule('FORWARD --logical-out br-client -o bat0 -s ' .. macaddr .. ' -j DROP')