作者chiang0823 (C.C.)
看板Windows
标题[问题] Windows 7防火墙port设定问题
时间Sat Feb 19 15:29:32 2011
大家好,小弟我正在练习架设伺服器。
我的问题是这样,在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防火墙,皆可透过外面可以正常连线。
请问这防火墙的规则该怎样设定才能正常连线?
以上,谢谢大家。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.88.241
※ 编辑: chiang0823 来自: 140.113.88.241 (02/20 11:41)