码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-04-18 06:31:08      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

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 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙

标签:

原文地址:http://www.cnblogs.com/archoncap/p/5403016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!