CentOS 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙
2023-09-14 09:01:20 时间
CentOS 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙
时间:2014-10-13 19:03:48 作者:哎丫丫 来源:哎丫丫数码网 查看:11761 评论:2
service firewalld stop
1. Disable Firewalld Service.
[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld
2. Stop Firewalld Service.
[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld
3. Install iptables service related packages.
[root@rhel-centos7-tejas-barot-linux ~]# yum -y install iptables-services
4. Make sure service starts at boot:
[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable iptables
# If you do not want ip6tables, You can skip following command.
[root@rhel-centos7-tejas-barot-linux ~]# systemctl enable ip6tables
5. Now, Finally Let’s start the iptables services.
[root@rhel-centos7-tejas-barot-linux ~]# systemctl start iptables
# If you do not want ip6tables, You can skip following command.
[root@rhel-centos7-tejas-barot-linux ~]# systemctl start ip6tables
Firewalld Service is now disabled and stop, You can use iptables.
相关文章
- 解决宿主机不能访问虚拟机CentOS中的站点 | 更新CentOS防火墙设置开启80端口访问
- Centos安装gcc及g++
- Centos 7防火墙firewalld开放80端口
- Centos rsync配置
- Linux centos 6.7防火墙打开MySQL 3306端口
- Centos扩展LVM分区
- CentOS 安装MariaDB
- Centos 7 安装 docker-compose
- CentOS 7 开启 firewalld 防火墙
- centos防火墙操作firewalld and systemctl 打开linux端口的shell脚本
- PostgreSQL的学习心得和知识总结(二十四)|CentOS环境 配置生成coredump程序崩溃内存转储文件及gdb调试core文件
- 在 RHEL or CentOS 7、8 中更改主机名的 4 种方法
- CentOS 7 两种方式搭建本地yum源
- centos 6升级 GCC 到4.8
- Centos 6 和Centos 7关闭防火墙
- CentOS更换国内yum源