首页 > 系统服务 > 详细

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

时间:2016-09-27 17:53:05      阅读:212      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!