fix: use ln -sf instead of update-alternatives --set for iptables-nft #28
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/vpn-iptables-nft-v3"
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
update-alternatives --set /usr/sbin/iptables-nftfails because the Alpineiptablespackage doesn't register the nftables binary as an alternative key — onlyiptables-legacywas registered by the official Dockerfile via--install.Error:
Fix
Use
ln -sfto directly replace the alternatives-managed symlinks. The/usr/sbin/iptables-nftbinary is present (provided by theiptablespackage), just not registered in the alternatives database.