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.
|
|
|
|
|
# Switch to iptables-nft so it works on kernels where only nftables
|
|
|
|
|
# netfilter modules are available (iptable_nat module missing).
|
|
|
|
|
RUN apk add --no-cache iptables-nft && \
|
|
|
|
|
update-alternatives --set iptables /usr/sbin/iptables-nft && \
|
|
|
|
|
update-alternatives --set ip6tables /usr/sbin/ip6tables-nft
|