iptables-viewer visualize iptables-save file 运行步骤: 先用 pip 安装库:pip install graphviz 运行上述Python程序。 最终将会生成iptables.png,其中包含iptables链和规则间的关系图。 效果图