How to listen on both IPv4 and IPv6?

Using Opensearch-dashboards 2.11.1 RPM on RHEL9.

How do I make dashboards listen both on IPv4 and IPv6 ?
When I use server.host: <my-hostname> it only binds to IPv6:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 2001:db8::ab00:1:443 :::*                    LISTEN      2706166/node

Hi @faxmodem ,

Please try setting server.host: 0.0.0.0 to make OpenSearch Dashboards listen on all IPs. After making changes to opensearch_dashbords.yml, please restart OpenSearch Dashboards.

Hi,

Thanks for the suggestion. Unfortunately this doesn’t work : it only listens
to all IPv4 addresses. In opensearch we can use an array listing all
interfaces which works fine.

Hi @faxmodem,

Based on tests in my lab, adding server.host: "::" will enable it to work with both IPv6 and IPv4 addresses.


Hi Eugene, thanks for your experiments.
I can confirm that server.host: "::" causes opensearch to listen both to 4 and 6 connections.

Unfortunately, setting server.host this way also breaks our openid connection.
I’m guessing server.host is both being used for resolving the listener address, and forwarding the redirect_uri for openid connect.

If my analysis is correct, it would require splitting the setting into two values.
For instance:

server.listen:
  - 1.2.3.4
  - 2345:425:2CA1:0000:0000:567:5673:23b5
server.host: foo.bar.baz.com