diff --git a/olsrd/Makefile b/olsrd/Makefile index 7c8918c097..dad69ce9e6 100644 --- a/olsrd/Makefile +++ b/olsrd/Makefile @@ -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 diff --git a/olsrd/files/olsrd.sh b/olsrd/files/olsrd.sh index cb52d1973a..0fb5ed64a8 100644 --- a/olsrd/files/olsrd.sh +++ b/olsrd/files/olsrd.sh @@ -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