CentOS 7 使用iptables防火墙
时间:2017-02-18 02:43 来源:linux.it.net.cn 作者:IT
# 停止firewalld服务 systemctl stop firewalld systemctl mask firewalld
# 安装iptables-services yum install iptables-services Enable the service at boot-time:
# 启动iptables服务 systemctl enable iptables
# 管理iptables systemctl [stop|start|restart] iptables
# 保存规则 service iptables save 或者 /usr/libexec/iptables/iptables.init save
(责任编辑:IT)
# 停止firewalld服务 systemctl stop firewalld systemctl mask firewalld # 安装iptables-services yum install iptables-services Enable the service at boot-time: # 启动iptables服务 systemctl enable iptables # 管理iptables systemctl [stop|start|restart] iptables # 保存规则 service iptables save 或者 /usr/libexec/iptables/iptables.init save (责任编辑:IT) |