1

我正在通过 ssh 连接到 VPN(Linux 机器)并在那里调用以下命令:

sibi::bash-> python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...

然后,我在它的 URL 中访问它:http://xxxx:8000并且浏览器抱怨我它无法连接。

如何调试这个问题?

(Apache 的测试页面在http://xxxx中运行良好)

更新:IP 规则 (iptables -L -n)

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 

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

1 回答 1

2

这显然是一个防火墙问题。

冲洗iptables有助于解决问题:

sudo iptables -F

但请注意,您可能需要为您的 VPN 服务器设置适当的防火墙规则。

于 2013-11-20T09:20:54.237 回答