Windows 2008 R2防火牆,允許被ping的設定方法_win伺服器

來源:互聯網
上載者:User

1.準備

1)原因

出於安全因素考慮,在Windows 2008 R2上是不允許從外部對其Ping指令,如果需要配置允許被Ping,必須通過“進階安全Windows防火牆”進行配置。

2)裝置

一台Windwos 2003機器,一台Windows 2008 R2機器(這裡用虛擬機器做示範)

Windows 2003 IP地址為:192.168.1.102

Windows 2008 IP地址為:192.168.1.103

2.圖形化設定

1)Windows 2003 Ping Windows 2008:

2)Windows 2008 Ping Windows 2003:

由於Windows 2008 Ping Windows 2003能夠Ping通,證明從Windows 2008到Windows 2003的網路是沒問題,而Windows 2003 Ping Windows 2008不能Ping通,可以判斷可能由於Windows 2008上的防火牆給阻止了。

3)進階安全Windows防火牆:

開始—>管理工具—>進階安全Windows防火牆

4)配置進階安全Windows防火牆:

在左邊的選項框中選擇“入站規則”

5)啟動ICMP:

勾選“已啟動(E)”, 根據具體情況選擇並啟動相應的ICMP,應用即可(這裡我開啟IPv4公網的ICMP)

6)Windows 2003 Ping Windows 2008:

此時已經可以Ping通了

3.命令列設定

1)把剛才開啟的ICMP關掉:

2)再次用Windows 2003 Ping Windows 2008:

此時再次Ping不通,下面我們使用命令列來開啟ICMP

3)開啟ICMP:

使用netsh firewall set icmpsetting 8開啟公網ICMP

4)Windows 2003 Ping Windows 2008:

再次Ping通。

5)查看進階安全Windows防火牆:

公網的IPv4與IPv6的ICMP顯示已啟動

6)關閉ICMP

通過netsh firewall set icmpsetting 8 disable來關閉ICMP

7)查看進階安全Windows防火牆:

公網的IPv4與IPv6的ICMP顯示已關閉

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.