我有一个Node.js速递网站,它正在监听端口9000,在我将端口更改为80之前,它只接受来自本地的连接:
wget http://127.0.0.1/ -O -
curl 127.0.0.1:80在本地,它工作正常,它们返回html页面。但是它不接受来自浏览器的远程连接,无论是使用外部IP地址还是使用域名。
# iptables
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80发布于 2015-11-06 16:21:55
嗯,我已经发现了这个问题,这是我的iptables规则,将远程连接从外部转发到另一个端口。
https://stackoverflow.com/questions/33541757
复制相似问题