Windows 7防火牆port設定問題 - Windows

Table of Contents

大家好,小弟我正在練習架設伺服器。

我的問題是這樣,在Windows底下,

透過Virtualbox架設一個LAMP Server(Linux),

Virtualbox網路設定為NAT然後透過port forwarding方式

轉到Virtualbox底下的LAMP Server(Linux)。

在實際測試時,沒有問題,但是上線之後

外部無法連結。然而關掉Windows防火牆之後,

外部就可以正常連結。

我有嘗試使用Windows防火牆的規則設定,但是

設定之後都沒辦法正常的使用。

virtualbox port forwarding為:
(virtual box)
xxx.xxx.xxx.xxx:10000(Windows 7) -> yyy.yyy.yyy.yyy:80(LAMP Server)

輸出入規則皆設定為:
TCP連線:特定Port 10000:允許連線 - 失敗外面無法連線

瀏覽器輸入網址http://xxx.xxx.xxx.xxx:10000/index.php

另外我也想說會不會可以一樣透過TCP 80 Port方式連線

所以換了一個port forwawrding方式,輸出入規則同上:
(virtual box)
xxx.xxx.xxx.xxx:80(Windows 7) -> yyy.yyy.yyy.yyy:80(LAMP Server)

瀏覽器輸入網址http://xxx.xxx.xxx.xxx/index.php

但測試結果還是不行。

而以上兩種方式,在關掉Windows防火牆,皆可透過外面可以正常連線。

請問這防火牆的規則該怎樣設定才能正常連線?

以上,謝謝大家。

--

All Comments