0.0.0.0/0(nftables)

0.0.0.0/0(nftables)

Content #

0.0.0.0/0 在 nftables 规则中(合法)

nft add rule inet filter input ip saddr 0.0.0.0/0 accept

这表示:

接受所有 IPv4 地址 作为源地址(即,不管是 192.168.1.1 还是 8.8.8.8,都匹配)。不会真正匹配 0.0.0.0,因为 0.0.0.0 不能作为源地址出现在数据包中。

From #