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

linux 如何查看防火墙是否开启

时间:2016-09-27 17:53:37      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

ervice iptables status可以查看到iptables服务的当前状态。
但是即使服务运行了,防火墙也不一定起作用,你还得看防火墙规则的设置 iptables -L
在此说一下关于启动和关闭防火墙的命令:
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop

linux 如何查看防火墙是否开启

标签:

原文地址:http://www.cnblogs.com/cbreeze/p/5913603.html

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