Cannot access Kibana7.7 from remote

I haved installed ES7.7. ES runs successfully. Kibana can be installed and started as well. While Kibana connect Elasticsearch through intranet ip address, we want to access Kibana through internet ip address.
I just edit default kibana.yaml in three lines as follow:

server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://es-intranet-ip:9200"]

running on Ubuntu18.4 both ES and kibana, so I set firework like this:

sudo ufw allow 5601

When I check for a listener:

netstat -nat | grep 5601
tcp        0      0 0.0.0.0:5601            0.0.0.0:*               LISTEN

Temp to connect service from kibana server itself using its intranet ip address, it appears like a success :

curl http://kibana-intranet-ip:5601/status -v
*   Trying kibana-intranet-ip...
* TCP_NODELAY set
* Connected to kibana-intranet-ip (kibana-intranet-ip) port 5601 (#0)
> GET /status HTTP/1.1
> Host: kibana-intranet-ip:5601
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
....

But I cannot access kibana by using its internet ip address.

curl http://kibana-internet-ip:5601/status -v
*   Trying kibana-internet-ip...
* TCP_NODELAY set
* connect to kibana-internet-ip port 5601 failed: Connection timed out
* Failed to connect to kibana-internet-ip port 5601: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to kibana-internet-ip port 5601: Connection timed out

I don't see anything that would suggest Kibana is running anywhere else. I am at a loss. Anyone have ideas that would help me?

I have solved the problem. Because I use cluster in intranet, port should be opened through internet on the kibana server.

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