久久久久久久性爱潮,国产又粗又猛又爽又黄下载视频,尤物国产在线一区视频,欧美日本国产在线不卡

<sup id="4uqqy"><ol id="4uqqy"></ol></sup>
  • <th id="4uqqy"></th>

      • <strike id="4uqqy"><nobr id="4uqqy"><ins id="4uqqy"></ins></nobr></strike><sup id="4uqqy"></sup><strong id="4uqqy"><u id="4uqqy"></u></strong>
        <sub id="4uqqy"></sub>

          綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|廠商大全

          綠色資源網(wǎng)

          技術(shù)教程
          您的位置:首頁操作系統(tǒng)linux → CentOS防火墻開啟80端口

          CentOS防火墻開啟80端口

          我要評論 2012/09/26 01:01:18 來源:綠色資源網(wǎng) 編輯:www.kiwanis-srv.org [ ] 評論:0 點擊:261次

          更新CentOS防火墻設(shè)置開啟80端口訪問

          我們以添加80端口為例操作如下:

          [root@centos httpd]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT

          保存

          [root@centos httpd]# /etc/rc.d/init.d/iptables save

          iptables:將防火墻規(guī)則保存到 /etc/sysconfig/iptables: [確定]

          如果上面的步驟還沒好的話,可能是這個iptables文件使用的是包含調(diào)用。

          一般的在/etc/sysconfig/iptables這個路徑上

          或者使用vi打開這個文件修改手動添加

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

          # Generated by iptables-save v1.4.7 on Tue Feb 14 07:32:18 2012
          *filter
          :INPUT ACCEPT [0:0]
          :FORWARD ACCEPT [0:0]
          :OUTPUT ACCEPT [7:640]
          -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
          -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
          -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
          -A INPUT -p icmp -j ACCEPT
          -A INPUT -i lo -j ACCEPT
          -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
          -A INPUT -j REJECT --reject-with icmp-host-prohibited
          -A FORWARD -j REJECT --reject-with icmp-host-prohibited
          COMMIT
          # Completed on Tue Feb 14 07:32:18 2012

          重新啟動服務(wù)

          [root@centos httpd]# service iptables restart
          iptables:清除防火墻規(guī)則: [確定]
          iptables:將鏈設(shè)置為政策 ACCEPT:filter [確定]
          iptables:正在卸載模塊: [確定]
          iptables:應(yīng)用防火墻規(guī)則: [確定]

          查看端口是否生效:

          [root@centos httpd]# /etc/init.d/iptables status

          表格:filter
          Chain INPUT (policy ACCEPT)
          num target prot opt source destination
          1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
          2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
          3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,
          4 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
          5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
          6 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp
          7 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with ic

          Chain FORWARD (policy ACCEPT)
          num target prot opt source destination
          1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with ic

          Chain OUTPUT (policy ACCEPT)
          num target prot opt source destination

          關(guān)鍵詞:CentOS,防火墻

          閱讀本文后您有什么感想? 已有 人給出評價!

          • 0 歡迎喜歡
          • 0 白癡
          • 0 拜托
          • 0 哇
          • 0 加油
          • 0 鄙視