Skip to content

Commit

Permalink
gluon-radv-filterd: migrate to nftables
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed May 1, 2023
1 parent d26d3f9 commit 22282cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/gluon-radv-filterd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include ../gluon.mk

define Package/gluon-radv-filterd
TITLE:=Filter IPv6 router advertisements
DEPENDS:=+gluon-ebtables +libgluonutil +libbatadv +libnl-tiny
DEPENDS:=+gluon-nftables +libgluonutil +libbatadv +libnl-tiny
endef

MAKE_VARS += \
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
bridge_table('pre', [[set radv_allow {
type ether_addr
}
set radv_filter {
type ether_addr
}
]])

-- This rule starts filtering once the address is in radv_filter

-- Daemon adds 00:00:../ff:ff:.. to radv_filter so everything gets picked up,
-- effectivly turning radv_filter into a bool

bridge_rule('FORWARD', 'ether saddr @radv_filter iifname "bat0" icmpv6 type nd-router-advert ether saddr != @radv_allow drop')

0 comments on commit 22282cd

Please sign in to comment.