$ docker run --rm --net=host --cap-add=NET_ADMIN --cap-add=NET_RAW nattertool/natter:alpine -m iptables
2024-02-20 12:53:39 [I] Natter v2.0.0-rc2
# Warning: iptables-legacy tables present, use iptables-legacy to see them
iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument
OSError: iptables >= (1, 4, 1) not available
原因在于 Alpine Linux 的变更:
目前构建的 Docker 镜像已指向 nft 变体导致功能发生改变。 需要修正 Dockerfile。
用例:
显示调用为
iptables v1.8.10 (nf_tables)
。