2026-05-12 14:52:33 -04:00
|
|
|
# Custom wg-easy with iptables-nft (nftables-backed iptables)
|
|
|
|
|
# Fixes crash-loop when host kernel lacks legacy iptable_nat module.
|
2026-05-13 12:30:15 -04:00
|
|
|
FROM ghcr.io/wg-easy/wg-easy:latest
|
2026-05-12 14:52:33 -04:00
|
|
|
|
2026-05-13 12:30:15 -04:00
|
|
|
# The upstream image defaults to iptables-legacy via update-alternatives.
|
2026-05-13 12:48:51 -04:00
|
|
|
# Switch iptables to the nftables backend (already provided by the 'iptables'
|
|
|
|
|
# package on Alpine 3.18+). No apk add needed — iptables-nft is built-in.
|
|
|
|
|
RUN update-alternatives --set iptables /usr/sbin/iptables-nft && \
|
2026-05-13 12:30:15 -04:00
|
|
|
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
|