<div dir="ltr"><div>Yeah,</div><div><br></div><div>network connectivity, firewall, etc. are all configured correctly but still having issues when trying to hit the proxy. It's is very strange, since the ports are listening. I even turned off the firewall and the same issues.<br><br></div>Joel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 1:26 PM, Francis Daly <span dir="ltr"><<a href="mailto:francis@daoine.org" target="_blank">francis@daoine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Dec 18, 2017 at 01:21:41PM -0600, Joel Parker wrote:<br>
<br>
Hi there,<br>
<span class=""><br>
> I have seen this a lot on google but have not been able to find a suitable<br>
> solution. My firewall is setup correctly.<br>
<br>
</span>This looks like something that nginx can not do anything about.<br>
<span class=""><br>
> curl localhost - works<br>
> curl 172.31.22.230 -works when running on the local machine<br>
<br>
</span>That suggests that the local machine has network connectivity to and<br>
from that IP address.<br>
<span class=""><br>
> but when I try to run it from the outside, I get:<br>
><br>
> curl <a href="http://172.31.22.230/" rel="noreferrer" target="_blank">http://172.31.22.230/</a><br>
> curl: (7) Failed to connect to 172.31.22.228 port 80: Connection refused<br>
<br>
</span>That suggests that the outside machine does not has network connectivity<br>
both to and from that IP address.<br>
<br>
Note that you have one address in the curl request, and a different one<br>
in the response. If that is real, something odd is going on.<br>
<span class=""><br>
> I have made the config as simple as possible but have not figured out a way<br>
> to run<br>
> curl <a href="http://172.31.22.230" rel="noreferrer" target="_blank">http://172.31.22.230</a> from another machine<br>
<br>
</span>If the traffic does not get to nginx, nginx can do nothing about the traffic.<br>
<br>
You need to ensure that your network configuration -- routing,<br>
firewalling, everything else -- is correct, before nginx gets involved.<br>
<br>
Good luck with it,<br>
<br>
f<br>
<span class="HOEnZb"><font color="#888888">--<br>
Francis Daly <a href="mailto:francis@daoine.org">francis@daoine.org</a><br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>