First post, so there is a likelihood that I may not understand how things work in connecting Kibana and Elasticsearch in a secure production environment.
So, I have a live website that has access to our closed local network. The live website connects to our elasticsearch instance which is configured in the elasticsearch.yml to be 184.108.40.206:9200
I make a call from our live server to 220.127.116.11:9200 to make a query. This works great.
When I connect to Kibana on18.104.22.168, I get an error showing that it is not able to connect to elasticsearch on localhost:9200. This seems an obvious case since elasticsearch is configured to map to 22.214.171.124.
How do I reconcile this?
On my web server I am using the Elasticsearch PHP client library to connect to the elasticsearch node which is not of course localhost in relation to the live server. It would be insecure to install elasticsearch directly on a live server that has access to the open web. Therefore a client using the PHP API would never use localhost:9200. Am I right?
Of course If I do change my elasticsearch.yml to point to 127.0.0.1, then Kibana comes up properly, but then... bang, no remote access from my live client server.