转发端口不工作OS X Lion Server

时间:2012-10-13 11:32:00

标签: tomcat osx-lion firewall portforwarding

我正在尝试将端口80转发到8484

sudo ipfw add 100 fwd 127.0.0.1,8484 tcp from any to any 80 in

这适用于我的本地计算机(OS X 10.6),但不适用于我的服务器OS X 7。

每当我添加我获得的规则后尝试连接到任何URL时 找不到

在此服务器上找不到请求的URL /login.htm。

这是添加规则后ipfw show的输出:

00100 0 0 fwd 127.0.0.1,8484 tcp from any to any dst-port 80 in
01000 0 0 allow ip from any to any via lo0
01010 0 0 deny ip from any to 127.0.0.0/8
01020 0 0 deny ip from 224.0.0.0/4 to any in
01030 0 0 deny tcp from any to 224.0.0.0/4 in
12300 0 0 allow tcp from any to any established
12301 0 0 allow tcp from any to any out
12302 0 0 allow tcp from any to any dst-port 22
12302 0 0 allow udp from any to any dst-port 22
12303 0 0 allow udp from any to any dst-port 68
12304 0 0 allow udp from any to any out keep-state
12305 0 0 allow tcp from any to any dst-port 53 out keep-state
12305 0 0 allow udp from any to any dst-port 53 out keep-state
12306 0 0 allow udp from any to any in frag
12307 0 0 allow tcp from any to any dst-port 311
12308 0 0 allow tcp from any to any dst-port 625
12309 0 0 allow icmp from any to any icmptypes 8
12310 0 0 allow icmp from any to any icmptypes 0
12311 0 0 allow igmp from any to any
65534 0 0 deny ip from any to any
65535 0 0 allow ip from any to any

添加规则时,我无法确定转发是否确实有效。有没有办法测试这个?此外,什么可能阻止转发规则被识别。

我尝试刷新所有规则并添加一条规则

00100 0 0 fwd 127.0.0.1,8484 tcp from any to any dst-port 80 in

但这也没有效果。

0 个答案:

没有答案
相关问题