Compare commits
3 Commits
fix/vpn-ip
...
7e2b133946
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e2b133946 | |||
| 611e96b306 | |||
| f184ed957c |
@@ -2,9 +2,8 @@
|
||||
# Fixes crash-loop when host kernel lacks legacy iptable_nat module.
|
||||
FROM ghcr.io/wg-easy/wg-easy:latest
|
||||
|
||||
# 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
|
||||
# The upstream image registers only iptables-legacy with update-alternatives.
|
||||
# iptables-nft binary exists but isn't registered as an alternative.
|
||||
# Override the alternatives-managed symlinks directly.
|
||||
RUN ln -sf /usr/sbin/iptables-nft /usr/sbin/iptables && \
|
||||
ln -sf /usr/sbin/ip6tables-nft /usr/sbin/ip6tables
|
||||
|
||||
Reference in New Issue
Block a user