当前位置:网站首页 / Linux / 正文

linux防火墙关闭启动详解

时间:2016年12月10日 | 作者 : liuhui | 分类 : Linux | 浏览: 7081次 | 评论 0

阿里云限量代金券 | 此广告位出租25元/月

1.jpgCentos 6.4 iptables防火墙关闭启动详解

在linux中关闭防火墙有两种状态一种永久关闭防火墙,另一种是暂时关闭防火墙的方法,下面我们一起来看看具体的操作步骤。
关闭虚拟机防火墙:
关闭命令: service iptables stop
永久关闭防火墙:chkconfig iptables off
两个命令同时运行,运行完成后查看防火墙关闭状态
service iptables status
1 关闭防火墙-----service iptables stop
2 启动防火墙-----service iptables start
3 重启防火墙-----service iptables restart
4 查看防火墙状态--service iptables status
5 永久关闭防火墙--chkconfig iptables off
6 永久关闭后启用--chkconfig iptables on

RedHat 6.4 关闭系统自带防火墙

第一次使用RedHat很多不熟悉的地方,记录下:

检查状态:

service iptables status
停止服务:

service iptables stop
查看防火墙服务:

chkconfig --list | grep iptables
关闭状态为“开启”的:

chkconfig --level 2345 iptables off
同时关闭IP6的:

chkconfig --level 2345 ip6tables off
再次检查是否都关闭:

chkconfig --list | grep iptables
chkconfig --list | grep ip6tables
还需要修改一个设置:

vi /etc/selinux/config
注释掉原来 SELINUX= 开头的一行,重新加入以下内容:

SELINUX=disabled
保存,重启服务器。


本文收集于:http://blog.jwangkun.com/


推荐您阅读更多有关于“”的文章

猜你喜欢

网站分类
关注电脑博士
友情链接

分享:

支付宝

微信