From e5046ae6328778164dc41c3f732c83f4476c477c Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 10 Dec 2024 16:37:06 +0100 Subject: [PATCH] blocklanfw script is not yet migrated to nft, ignore it when nft is used --- openmptcprouter/files/bin/blocklanfw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmptcprouter/files/bin/blocklanfw b/openmptcprouter/files/bin/blocklanfw index 5b476da4a..8395c731e 100755 --- a/openmptcprouter/files/bin/blocklanfw +++ b/openmptcprouter/files/bin/blocklanfw @@ -1,5 +1,7 @@ #!/bin/sh +[ -e /usr/sbin/nft ] && exit 0 + if [ -e /usr/sbin/iptables-legacy ]; then IPTABLES="/usr/sbin/iptables-legacy" IP6TABLES="/usr/sbin/ip6tables-legacy"