I have elasticsearch instance running in my linux server on xxx.xxx.1.75: 9201.
I have installed and configured NGINX on another server xxx.xx.1.89 and set the proxy for the elasticsearch to be running on port 5001i.e., it is able to access from xxx.xxx.1.89:5001.
But when I try to access the elasticsearch using port xxx.xxx.1.75:9201 it is running good, which I don't want to happen.
I want to restrict the access of elasticsearch cluster only through NGINX reverse proxy server i.e., xxx.xx.1.89:5001 but not directly from xxx.xx.1.75:9201.
Please help me to solve this.
thanks.