keep legacy iptables as default to stay compatible with previous behavior

This commit is contained in:
Lukas Prettenthaler 2023-11-05 12:59:36 -07:00
parent ea04bd7977
commit d18dfe3b09
No known key found for this signature in database
GPG Key ID: 58E5A82932BCE65D
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ ENV LOG_PATH=/var/log/supervisor
COPY scripts/entrypoint-router.sh /usr/sbin/ COPY scripts/entrypoint-router.sh /usr/sbin/
RUN apk add --no-cache --purge --clean-protected iptables-legacy tzdata \ RUN apk add --no-cache --purge --clean-protected iptables iptables-legacy tzdata \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
EXPOSE 9993/udp EXPOSE 9993/udp

View File

@ -47,7 +47,7 @@ echo "$(date) - launching ZeroTier-One in routing mode"
PHY_IFACES="${ZEROTIER_ONE_LOCAL_PHYS:-"eth0"}" PHY_IFACES="${ZEROTIER_ONE_LOCAL_PHYS:-"eth0"}"
# default to iptables (maintains backwards compatibility) # default to iptables (maintains backwards compatibility)
IPTABLES_CMD=iptables IPTABLES_CMD=iptables-legacy
# but support an override to use iptables-nft # but support an override to use iptables-nft
[ "${ZEROTIER_ONE_USE_IPTABLES_NFT}" = "true" ] && IPTABLES_CMD=iptables-nft [ "${ZEROTIER_ONE_USE_IPTABLES_NFT}" = "true" ] && IPTABLES_CMD=iptables-nft