nginx接受本地networking连接,但不接受外部NAT

我有一个Ubuntu 16.04.3 LTS,有两个networking接口***.20***.30

443外部连接被路由器端口转发到***.30接口。

概要:

当我试图从外面打开任何页面时,nginx不工作(没有连接被接受)。

经过:

  1. 在浏览器http://***.30/https://***.30/打开时,nginx工作(即接受连接,显示首页)

  2. 当我closuresnginx并运行sudo ncat -l ***.30 80和从外部telnet mydomain.com 80 ,可以看到我的双面打字。 我认为,湿dns +端口转发+ iptables。

问题:

我还能检查什么? 任何指针? 我可以从页面从本地***.30界面打开的事实假设正确的nginxconfiguration吗?

转储,编辑

运行nginx:

 nginx version: nginx/1.13.6 built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled 

netstat的:

 Proto Recv-Q Send-Q Local Address Foreign Addr State PID/Program name tcp 0 0 ***.30:25 0.0.0.0:* LISTEN 5150/nginx: master tcp 0 0 ***.30:443 0.0.0.0:* LISTEN 5150/nginx: master tcp 0 0 ***.30:995 0.0.0.0:* LISTEN 5150/nginx: master tcp 0 0 ***.30:80 0.0.0.0:* LISTEN 5150/nginx: master tcp 0 0 ***.20:80 0.0.0.0:* LISTEN 5150/nginx: master 

iptables的:

 ACCEPT tcp -- anywhere ***.30 tcp dpt:http ACCEPT tcp -- anywhere ***.30 tcp dpt:https ACCEPT tcp -- anywhere ***.30 tcp dpt:smtp ACCEPT tcp -- anywhere ***.30 tcp dpt:pop3s