fix: update wg-easy to official ghcr image with iptables-nft #26
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/vpn-iptables-nft-upstream"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The WireGuard VPN
vpn_stack.servicefails to build with two issues:compose.ymlhadcontext: ./vpnbut the Dockerfile is at the same directory level, not in avpn/subdirectory.weejewel/wg-easy:latestis 4 years stale on Alpine 3.11, which doesn't have theiptables-nftpackage. After fixing the context, the build failed with:Changes
vpn/compose.ymlbuild: context: ./vpn→build: context: .vpn/DockerfileFROM weejewel/wg-easy:latest→FROM ghcr.io/wg-easy/wg-easy:latest(actively maintained, Alpine/krypton)apk add iptables-nft+update-alternatives --setto switch fromiptables-legacytoiptables-nftinstead of fragileln -sfiptables-legacy(requiresiptable_natkernel module, missing on this host) — we flip it toiptables-nftwhich uses the nftables kernel APITesting
After merge, update infra submodule pointer and deploy: