Skip to content

Commit

Permalink
keep legacy iptables as default to stay compatible with previous beha…
Browse files Browse the repository at this point in the history
…vior
  • Loading branch information
zyclonite committed Nov 5, 2023
1 parent ea04bd7 commit d18dfe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.router
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/entrypoint-router.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d18dfe3

Please sign in to comment.