Bind kibana's server.host to multiple interfaces (both localhost and 192.168.0.0/16)

Hi,

I'd like to be able to access kibana by typing in localhost:5601 as well as MACHINE_HOST_NAME:5601.

Elastic can do it easily with network.host: [_site_, _local_]. But I haven't found a way to do this in kibana.

I found https://stackoverflow.com/questions/34661210/how-to-bind-kibana-to-multiple-host-names-ips, which suggests 0.0.0.0 but ideally I'd like it to be only bound to localhost and eth0:1, which is 192.168.0.0/16 (private) and not the public IP.

I also cross-posted this here https://github.com/elastic/kibana/issues/64484.

Please advise.

Thanks.

hi @archon810

for now, I would track the discussion for the enhancement there https://github.com/elastic/kibana/issues/64484

In the meantime, perhaps putting a reverse proxy between the user and kibana could help you achieve this: (?YMMV)

e.g.: with nginx, configure listen only for localhost and that private IP:
http://nginx.org/en/docs/http/ngx_http_core_module.html#listen

For now I am using 0.0.0.0 and making sure there is a firewall active and blocking access to the outside world, but in the longer term, it'd be good to see the feature implemented without having to resort to reverse proxies.

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