remove nftables installation from Dockerfile and clean up firewall-add script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-11-18 23:21:31 +01:00
parent e21011bec1
commit 9271f63dd9
2 changed files with 1 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
FROM alpine
RUN apk add --update --no-cache iptables iptables-legacy openssl jq curl ca-certificates busybox-extras docker-cli nftables
RUN apk add --update --no-cache iptables iptables-legacy openssl jq curl ca-certificates busybox-extras docker-cli
COPY firewall/ /firewall/
CMD firewall/iptables-wrapper-installer.sh && /firewall/firewall-add

View File

@@ -484,9 +484,6 @@ for source_ip_index in $(seq 1 $COUNT_SOURCE_IP); do
else
debug "$IPTABLES -I $CHAIN -p $PROTOCOL $IPTABLES_OPTIONS -m comment --comment "$COMMENT" -j ACCEPT"
$IPTABLES -w -I $CHAIN -p $PROTOCOL $IPTABLES_OPTIONS -m comment --comment "$COMMENT" -j ACCEPT
if [ "$IPTABLES" == "/usr/sbin/iptables" ]; then
/usr/sbin/nft delete table ip raw 2>/dev/null || true
fi
fi
fi
#############################