关闭CentOS7的firewalld并启用iptables操作
来源:互联网 发布:淘宝客服售后聊天技巧 编辑:程序博客网 时间:2024/06/05 18:34
CentOS7发布也挺长时间了,但是因为与旧版本差异过大,一直使用 的CentOS6,为了安全性以及技术的更新,总是要换成CentOS7的
在CentOS7中,防火墙iptables被firewalld取代。但为了使用习惯,还是喜欢把防火墙改回iptables。
[root@localhost ~]# systemctl stop firewalld ##停止防火墙 firewalld
[root@localhost ~]# systemctl disable firewalld ##禁用防火墙 firewalld
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@localhost ~]# systemctl status firewalld ##查看防火墙状态
防火墙 firewalld 关闭成功
接下来就是启用iptables了,安装iptables相关组件
[root@localhost ~]# yum install -y iptables-services iptables-devel.x86_64 iptables.x86_64
[root@localhost ~]# systemctl enable iptables ##启用iptables
[root@localhost ~]# systemctl start iptables ##启动iptables
[root@localhost ~]# systemctl status iptables ##查看iptables状态
测试:
iptables启用成功。
- 关闭CentOS7的firewalld并启用iptables操作
- CentOS7关闭firewalld开启iptables
- Centos7防火墙关闭和启用iptables操作
- Centos7 只启用iptables 禁用firewalld功能.
- CentOS 7关闭firewalld启用iptables
- CentOS 7关闭firewalld启用iptables
- Centos7 关闭firewall启用iptables
- CentOS7 禁用firewall,启用iptables,disable firewalld service and use iptables
- CentOS7将firewalld换成iptables
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- centos7 关闭firewall安装iptables并配置
- spark的集群安装
- MFC之对话框创建与销毁总结
- android studio 图标制作
- JSP基本语法 、 JSP运行原理
- IOS 制作app 预览视频
- 关闭CentOS7的firewalld并启用iptables操作
- Web.xml配置详解之context-param
- 51nod1355 斐波那契的最小公倍数
- 动态规划——openjudge7624山区建小学
- vbscript管理磁盘文档目录
- 数据结构(二)——队列
- 架构和设计有什么区别?
- 环形单链表的约瑟夫问题
- tensorflow中tf.maximum,tf.minimum,tf.argmax,tf.argmain的对比