我正在通过 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