浏览代码

gluon-next-node: add ebtables rules

Matthias Schiffer 10 年之前
父节点
当前提交
7c55b5060e

+ 1 - 1
package/gluon-next-node/Makefile

@@ -12,7 +12,7 @@ define Package/gluon-next-node
   SECTION:=gluon
   CATEGORY:=Gluon
   TITLE:=Next-node anycast address
-  DEPENDS:=+gluon-core +gluon-mesh-batman-adv +iproute2 +kmod-macvlan
+  DEPENDS:=+gluon-core +gluon-ebtables +gluon-mesh-batman-adv +iproute2 +kmod-macvlan
 endef
 
 define Package/gluon-next-node/description

+ 4 - 0
package/gluon-next-node/generate/lib/gluon/ebtables/250-next-node

@@ -0,0 +1,4 @@
+rule FORWARD --logical-out br-freifunk -o bat0 -d @next_node.mac@ -j DROP
+rule OUTPUT --logical-out br-freifunk -o bat0 -d @next_node.mac@ -j DROP
+rule FORWARD --logical-out br-freifunk -o bat0 -s @next_node.mac@ -j DROP
+rule OUTPUT --logical-out br-freifunk -o bat0 -s @next_node.mac@ -j DROP