Compare commits

..

1 Commits

View File

@@ -2,8 +2,8 @@
# Fixes crash-loop when host kernel lacks legacy iptable_nat module. # Fixes crash-loop when host kernel lacks legacy iptable_nat module.
FROM ghcr.io/wg-easy/wg-easy:latest FROM ghcr.io/wg-easy/wg-easy:latest
# The upstream image registers only iptables-legacy with update-alternatives. # The upstream image defaults to iptables-legacy via update-alternatives.
# iptables-nft binary exists but isn't registered as an alternative. # Switch iptables to the nftables backend (already provided by the 'iptables'
# Override the alternatives-managed symlinks directly. # package on Alpine 3.18+). No apk add needed — iptables-nft is built-in.
RUN ln -sf /usr/sbin/iptables-nft /usr/sbin/iptables && \ RUN update-alternatives --set iptables /usr/sbin/iptables-nft && \
ln -sf /usr/sbin/ip6tables-nft /usr/sbin/ip6tables update-alternatives --set ip6tables /usr/sbin/ip6tables-nft