CentOS 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙 (转)

前端之家收集整理的这篇文章主要介绍了CentOS 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙 (转)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_301_1@

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

@rhel-centos7-tejas-barot-linux ~]# systemctl start ip6tables

Firewalld Service is now disabled and stop,You can use iptables.

原文链接:https://www.f2er.com/centos/379102.html

猜你在找的CentOS相关文章