debian:
#使用可参考 https://www.debian.cn/archives/991
#配置文件位于 /etc/iptables
#重新配置使用dpkg-reconfigure iptables-persistent
apt install iptables-persistent
netfilter-persistent --help
netfilter-persistent save
netfilter-persistent start
netfilter-persistent reload
netfilter-persistent status
centos:
yum install iptables-services
systemctl mask firewalld.service
systemctl enable iptables.service
systemctl start iptables.service