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