I have an Elasticsearch installed on my host.
Request from localhost works fine
curl -X GET http://localhost:9200/
But how can I configure elasticsearch.yml in order to connect from one outer ip?
I have an Elasticsearch installed on my host.
Request from localhost works fine
curl -X GET http://localhost:9200/
But how can I configure elasticsearch.yml in order to connect from one outer ip?
On the elasticsearch.yml
file, locate the line #network.host:
, uncoment it (remove the "#") and change to network.host: 0.0.0.0
Then add the exception to the firewall and reload it (In my case I use UFW, so I ran sudo ufw allow 9200
and sudo ufw reload
)
Obs: Tested on version: 2.3