首页 > 其他 > 详细

centos防火墙基本操作

时间:2017-02-25 18:56:49      阅读:212      评论:0      收藏:0      [点我收藏+]

CentOS防火墙的基本操作

查看防火墙状态:

[root@centos ~]# service iptables status

 技术分享

开放8080访问端口:

[root@centos ~]# vi /etc/sysconfig/iptables

 技术分享

重启防火墙后查看

 技术分享

停止防火墙:

[root@centos ~]# service iptables stop

 技术分享

启动防火墙:

[root@centos ~]# service iptables start

 

重启防火墙:

[root@centos ~]# service iptables restart

 

查看防火墙的开机自启动状态

[root@centos ~]# chkconfig –list

 技术分享

永久关闭防火墙(也可以直接删除开机启动#chkconfig --del iptables):

[root@centos ~]# chkconfig iptables off

技术分享 

永久关闭后启用:

[root@centos ~]# chkconfig iptables on

centos防火墙基本操作

原文:http://www.cnblogs.com/lzhl/p/6442313.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!