Cannot connect to ES remotely even with ufw firewall

I have configured Elasticsearch to bind to localhost:9200 on the DB server, then allow my app server to connect to it with ufw. However, when I try to curl the DB server from my app server, I am unable to connect to it.

My workaround at the moment is to us nginx to listen to 9201 and send traffic to 9200. I am then able to run curl dbserver:9201.

I would like to setup multiple nodes, however, and I can’t figure out how I can get around this problem.

You need to make it bind to public ip. Try configuring with: network.host: [ "_local_", "_site_" ]

Also, know that this will effectively put it Production Mode

Thanks—that works!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.