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
Collaborator

Problem

The first merged PR (#26) added RUN apk add --no-cache iptables-nft but on Alpine 3.22 (used by ghcr.io/wg-easy/wg-easy:latest), iptables-nft is not a separate package — the iptables package is the nftables variant.

Build failed with:

ERROR: unable to select packages:
  iptables-nft (no such package):
    required by: world[iptables-nft]

Fix

Remove the apk add line — just flip update-alternatives from iptables-legacy to iptables-nft. The binary is already in the base image.

## Problem The first merged PR (#26) added `RUN apk add --no-cache iptables-nft` but on Alpine 3.22 (used by `ghcr.io/wg-easy/wg-easy:latest`), `iptables-nft` is not a separate package — the `iptables` package *is* the nftables variant. Build failed with: ``` ERROR: unable to select packages: iptables-nft (no such package): required by: world[iptables-nft] ``` ## Fix Remove the `apk add` line — just flip `update-alternatives` from `iptables-legacy` to `iptables-nft`. The binary is already in the base image.
Hermes added 1 commit 2026-05-13 16:48:58 +00:00
In Alpine 3.18+, the 'iptables' package IS the nftables variant.
iptables-nft is not a separate package. The binary is already in
the base image — only need to flip update-alternatives.
gortium merged commit ec08f5eb5d into master 2026-05-13 16:49:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gortium/compose#27
No description provided.