centos7 防火墙使用iptables

 

 

关闭防火墙

关闭防火墙
#禁用,禁止开机启动: systemctl disable firewalld
#停止运行: systemctl stop firewalld

yum安装iptables

yum -y install iptables-services

启动

systemctl start iptables

配置

vim /etc/sysconfig/iptables

 

开机启动iptables

systemctl enable iptables  

 

systemctl stop iptables  

systemctl start iptables  

systemctl restart iptables  

systemctl reload iptables  




posted @ 2021-07-19 23:50  minger_lcm  阅读(124)  评论(0编辑  收藏  举报