![centos / debian 安装iptables服务 centos / debian 安装iptables服务](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
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