问题
kali中文件/proc/net/ip_tables_names看不到默认表
解决
在iptables 1.8之后会分为两个部分,即iptables-legacy 和 iptables-nft
iptables-legacy -V
iptables -V
![在这里插入图片描述](https://img-blog.csdnimg.cn/1d9b142aff764c37a2cca4cbda8b3e03.png)
/proc/net/ip_tables_names文件中默认的是iptables-legacy中的表,所以在执行以下命令后就可以看到表了
iptables-legacy -t filter -L
iptables-legacy -t nat -L
cat /proc/net/ip_tables_names
![在这里插入图片描述](https://img-blog.csdnimg.cn/dd769936090249b0b15db454187c98ec.png)