自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS配置防火墻操作實(shí)例

系統(tǒng) Linux
本文通過(guò)七個(gè)步驟講述了CentOS 配置防火墻的操作實(shí)例,詳細(xì)分析了防火墻的基本操作命令實(shí)現(xiàn)端口的控制,希望對(duì)大家的學(xué)習(xí)有所幫助。

CentOS 配置防火墻操作實(shí)例(啟、停、開(kāi)、閉端口):

注:防火墻的基本操作命令:

查詢防火墻狀態(tài):

[root@localhost ~]# service iptables status<回車>

停止防火墻:

[root@localhost ~]# service iptables stop <回車>

啟動(dòng)防火墻:

[root@localhost ~]# service iptables start <回車>

重啟防火墻:

[root@localhost ~]# service iptables restart <回車>

***關(guān)閉防火墻:

[root@localhost ~]# chkconfig iptables off<回車>

***關(guān)閉后啟用:

[root@localhost ~]# chkconfig iptables on<回車>

1、查看防火墻狀態(tài)

[root@localhost ~]# service iptables status<回車>

2、編輯/etc/sysconfig/iptables文件。我們實(shí)例中要打開(kāi)8080端口和9990端口

用編輯器打開(kāi)/etc/sysconfig/iptables

3、依葫蘆畫瓢,我們添加8080端口和9990端口

4、保存/etc/sysconfig/iptables文件,并在終端執(zhí)行

[root@localhost ~]# service iptables restart <回車>

5、從新查看防火墻狀態(tài)

[root@localhost ~]# service iptables status<回車>

6、這時(shí)候,服務(wù)器的8080和9990端口就可以對(duì)外提供服務(wù)了。

7、其他端口的開(kāi)放模式就是類似如此開(kāi)放模式。

原文鏈接:http://my.oschina.net/u/593517/blog/297941

責(zé)任編輯:牛小雨 來(lái)源: elson的博客
相關(guān)推薦

2010-03-29 13:08:24

CentOS防火墻

2011-03-16 12:46:29

CentOSiptables防火墻

2010-03-24 14:23:11

CentOS防火墻

2009-12-25 13:36:41

2010-03-31 16:47:16

CentOS操作系統(tǒng)

2010-09-25 16:46:28

2010-09-13 16:32:58

2011-03-15 15:47:15

Iptables防火墻

2010-09-14 14:26:50

2009-12-09 14:34:58

2009-02-22 09:30:24

2010-03-31 17:43:44

CentOS防火墻

2013-01-21 10:17:27

防火墻惡意IP

2010-09-14 11:11:09

2009-11-30 13:05:00

Suse防火墻

2009-12-10 16:02:11

Juniper防火墻配

2010-03-08 09:09:48

2010-09-26 13:57:19

AlgoSec防火墻分

2010-12-21 18:04:26

2010-12-08 09:29:27

下一代防火墻
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)