I set these lines in elasticsearch.yml, so Elasticsearch is visible from public network.
network.host: 0.0.0.0 discovery.seed_hosts: ["host1_ip","host2_ip" , ...]
However, when I look at the log file, I see these lines:
[INFO ][o.e.t.TransportService ] [node-dtk6] publish_address {172.16.3.2:9300}, bound_addresses {[::]:9300}
[INFO ][o.e.b.BootstrapChecks ] [node-dtk6] bound or publishing to a non-loopback address, enforcing bootstrap checks
Also, Kibana shows 172.16.3.2:9300 instead of the public IP. However, my node is visible from public network!
How can I force elasticsearch to publish on public IP instead of private IP?
ip addrcommand which showed the private IP instead of public IP. - Hossein