I cannot change kibana to port 443

I am trying to have kibana on port 443 so I can use a domain name to access from the internet. Whenever the port is 5601 kibana starts correctly, but when I change the port to 443 the kibana process fails with the following error: Start request repeated too quickly, Failed with result 'exit-code'. The OS is Centos 8. Te kibana configs are below.

port: 443
server.host: "two.local"
server.ssl.certificate: "/etc/kibana/kibana.crt"
server.ssl.key: "/etc/kibana/kibana.key"
server.ssl.enabled: true
elasticsearch.hosts: ["https://master.local:9200","https://one.local:9200","https://two.local:9200"]
elasticsearch.ssl.verificationMode: none
elasticsearch.username: "kibana"
elasticsearch.password:password
xpack.security.encryptionKey: "ghghgghg"

Hi,
The ports 0-1023 are the "well known ports" and reserved, so you need higher privileges to bind to one of that port.
You could try this.
A other way would be a reverse proxy using nginx or Apache.
Personally I recommend the reverse proxy solution.

Thanks Simon. Is there a reverse proxy example you know about? I ran the following command yesterday, and it did not work: setcap CAP_NET_BIND_SERVICE=+eip /usr/share/kibana/bin/kibana. Thanks!

You can find the explanation and some examples on how to configure a nginx reverse proxy here.

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