Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple addresses in --https-port #8865

Open
dennypage opened this issue Dec 5, 2024 · 0 comments
Open

multiple addresses in --https-port #8865

dennypage opened this issue Dec 5, 2024 · 0 comments

Comments

@dennypage
Copy link

dennypage commented Dec 5, 2024

OS names: Linux, FreeBSD
ntopng version: 6.2 and prior

The --https-port (-W) option accepts a comma separated list of addresses to bind to. Examples:

--https-port=[::]:3333,0.0.0.0:3334
--https-port=[2600:8801:a000:1800::1]:3333,192.168.1.1:3334
--https-port=[2600:8801:a000:1800::1]:3333,192.168.1.1:3333

And on systems that maintain separate IPv4/IPv6 address space this works as well:

--https-port=[::]:3333,0.0.0.0:3333

This is all good. However, when listing multiple addresses in the https-port parameter, the addresses end up bound to the addresses/ports as expected, but only the last server address in the list actually functions correctly.

For instance, when using:

--https-port=[::]:3333,0.0.0.0:3334

connections to port 3333 on IPv6 will function as expected. However connections to port 3334 on IPv4 will fail with ERR_SSL_PROTOCOL_ERROR.

Similarly, when using:

--https-port=[2600:8801:a000:1800::1]:3333,192.168.1.1:3333

connections to port 3333 on the IPv6 address will function as expected, however connections to port 3333 on the IPv4 address will fail with ERR_SSL_PROTOCOL_ERROR. Further, it appears that the server running on the IPv4 address is actually HTTP rather than HTTPS, and returns an error 302.

I assume this is not the intended behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant