Loading

centos / debian 安装iptables服务

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
posted @ 2019-03-21 09:23  wswind  阅读(2677)  评论(3编辑  收藏  举报