mirror of
https://github.com/zyclonite/zerotier-docker.git
synced 2024-12-12 09:20:55 +01:00
keep legacy iptables as default to stay compatible with previous behavior
This commit is contained in:
parent
ea04bd7977
commit
d18dfe3b09
@ -13,7 +13,7 @@ ENV LOG_PATH=/var/log/supervisor
|
||||
|
||||
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/*
|
||||
|
||||
EXPOSE 9993/udp
|
||||
|
@ -47,7 +47,7 @@ echo "$(date) - launching ZeroTier-One in routing mode"
|
||||
PHY_IFACES="${ZEROTIER_ONE_LOCAL_PHYS:-"eth0"}"
|
||||
|
||||
# default to iptables (maintains backwards compatibility)
|
||||
IPTABLES_CMD=iptables
|
||||
IPTABLES_CMD=iptables-legacy
|
||||
# but support an override to use iptables-nft
|
||||
[ "${ZEROTIER_ONE_USE_IPTABLES_NFT}" = "true" ] && IPTABLES_CMD=iptables-nft
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user