码迷,mamicode.com
首页 > 系统相关 > 详细

002-Linux下防火墙相关命令操作

时间:2017-08-19 20:05:13      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:整理   自己   conf   步骤   关闭防火墙   运行   开机启动   iptables   lld   

  linux的各个版本或同一个版本间不同版本号关于防火墙命令也会有不一样的。针对这些命令整理如下,方便自己或有需要的朋友查阅。

centOS 6.5关闭防火墙步骤
关闭命令:         service iptables stop 
永久关闭防火墙:chkconfig iptables off
 
两个命令同时运行,运行完成后查看防火墙关闭状态 
        service iptables status
 

centos7.0默认防火墙为firewalld(为了测试,关闭默认防火墙,使用iptables防火墙)

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动

查看默认防火墙状态:

firewall-cmd --state

not running

 

002-Linux下防火墙相关命令操作

标签:整理   自己   conf   步骤   关闭防火墙   运行   开机启动   iptables   lld   

原文地址:http://www.cnblogs.com/ffeng/p/7397465.html

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