fix: remove apk add iptables-nft — built-in on Alpine 3.18+ #27

Merged
gortium merged 1 commits from fix/vpn-iptables-nft-v2 into master 2026-05-13 16:49:23 +00:00

View File

@@ -3,8 +3,7 @@
FROM ghcr.io/wg-easy/wg-easy:latest FROM ghcr.io/wg-easy/wg-easy:latest
# The upstream image defaults to iptables-legacy via update-alternatives. # The upstream image defaults to iptables-legacy via update-alternatives.
# Switch to iptables-nft so it works on kernels where only nftables # Switch iptables to the nftables backend (already provided by the 'iptables'
# netfilter modules are available (iptable_nat module missing). # package on Alpine 3.18+). No apk add needed — iptables-nft is built-in.
RUN apk add --no-cache iptables-nft && \ RUN update-alternatives --set iptables /usr/sbin/iptables-nft && \
update-alternatives --set iptables /usr/sbin/iptables-nft && \
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft update-alternatives --set ip6tables /usr/sbin/ip6tables-nft