加入收藏 | 设为首页 | 会员中心 | 我要投稿 济源站长网 (https://www.0391zz.cn/)- 数据工具、数据仓库、行业智能、CDN、运营!
当前位置: 首页 > 服务器 > 安全 > 正文

centos7如何去掉firewalld改用Iptables命令?

发布时间:2021-01-01 01:01:32 所属栏目:安全 来源:网络整理
导读:《centos7如何去掉firewalld改用Iptables命令?》要点: 本文介绍了centos7如何去掉firewalld改用Iptables命令?,希望对您有用。如果有疑问,可以联系我们。 相关主题:服务器安全/服务器配置 centos 7默认是用firewalld,那如何改为Iptables防火墙? cento

《centos7如何去掉firewalld改用Iptables命令?》要点:
本文介绍了centos7如何去掉firewalld改用Iptables命令?,希望对您有用。如果有疑问,可以联系我们。

相关主题:服务器安全 / 服务器配置

centos 7默认是用firewalld,那如何改为Iptables防火墙?


centos 7中不可执行: # service iptables save


[root@VM_0_6_centos ~]# service iptables save

The service command supports only basic LSB actions (start,stop,restart,try-restart,reload,force-reload,status). For other actions,please try to use systemctl.


解决方法:


1.先执行如下命令:

systemctl stop firewalld

systemctl mask firewalld


2.安装iptables services

yum -y install iptables-services


3.设置开机启动

systemctl enable iptables


4.重启iptables service

systemctl restart iptables

命令:systemctl [stop|start|restart] iptables


5.执行保存配置命令

service iptables save

(编辑:济源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读