Skip to content

Commit

Permalink
olsrd: switch to firewall4
Browse files Browse the repository at this point in the history
Firewall4 uses nftables instead of iptables. Use iptables-nft for
installing smart-gw-rules.

Fixes: openwrt#731 ("Certain upstream switch to firewall4 aka nftables instead
of iptables")

Signed-off-by: Nick Hainke <[email protected]>
  • Loading branch information
PolynomialDivision committed Feb 27, 2022
1 parent 699106a commit 1b6b87c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion olsrd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endef
define Package/olsrd
$(call Package/olsrd/template)
MENU:=1
DEPENDS:=+libpthread +libubus
DEPENDS:=+libpthread +libubus +iptables-nft +ip6tables-nft
endef

define Package/olsrd/conffiles
Expand Down
4 changes: 2 additions & 2 deletions olsrd/files/olsrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ olsrd_setup_smartgw_rules() {
nowan=0
fi

IP4T="$( command -v iptables )"
IP6T="$( command -v ip6tables )"
IP4T="$( command -v iptables-nft )"
IP6T="$( command -v ip6tables-nft )"

# Delete smartgw firewall rules first
if [ "$UCI_CONF_NAME" = "olsrd6" ]; then
Expand Down

0 comments on commit 1b6b87c

Please sign in to comment.