Skip to content

Commit

Permalink
olsrd: add iptables as dependency
Browse files Browse the repository at this point in the history
Firewall4 will not ship iptables as default. However, we need iptables for
installing smart-gw-rules.

Instead of using the original iptables, we can also use iptables-nft:
  ... iptables-nft parses the iptables syntax on command line, creates
  appropriate nftables commands, packs them into netlink messages and
  submits them to kernel.
  https://www.redhat.com/en/blog/using-iptables-nft-hybrid-linux-firewall

Since, commit 795e7155cbe3 ("iptables: rename to ip(6)tables-legacy,
add PROVIDES") it is enough to include iptables as dependency to install
iptables-nft [0]. iptables-nft also PROVIDES iptables.

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

- [0] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=795e7155cbe3e78669f6821bf7aecb7c4e1e1afbv

Signed-off-by: Nick Hainke <[email protected]>
  • Loading branch information
PolynomialDivision committed Mar 6, 2022
1 parent 699106a commit d9a6a73
Showing 1 changed file with 1 addition and 1 deletion.
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 +ip6tables
endef

define Package/olsrd/conffiles
Expand Down

0 comments on commit d9a6a73

Please sign in to comment.