Skip to content

Conversation

michaelklishin
Copy link
Contributor

Some environments are IPv6-only or at least strive to be, plus RabbitMQ allows for IPv6-only configuration
in a lot places.

Note that instead of introducing a new transport type (e.g. tcp6 or tcp_ipv6, tls_ipv6), which requires
many scattered changes, this introduces a separate option that is passed to gen_tcp:listen/2,
inet:setopts/2 and such.

CT tests use a new group to avoid interference.

The rabbitmq.conf part belongs to the RabbitMQ server repository.

Closes #116.

Some environments are IPv6-only or at least strive to be,
plus RabbitMQ allows for IPv6-only configuration
in a lot places.

Note that instead of introducing a new transport type
(e.g. tcp6 or tcp_ipv6, tls_ipv6), which requires
many scattered changes, this introduces a separate
option that is passed to `gen_tcp:listen/2`,
`inet:setopts/2` and such.

CT tests use a new group to avoid interference.

Closes #116.
@michaelklishin
Copy link
Contributor Author

michaelklishin commented Feb 27, 2025

I guess ipv6_v6only can be added as an option for the same setting. That would set both {ipv6_v6only, true} and inet6 ({inet6, true}).

Let's first get the basics in place.

@michaelklishin michaelklishin changed the title Make it possible to configure IP address family for Osiris replicas Make it possible to configure IP address family for Osiris replica listeners Feb 28, 2025
@michaelklishin
Copy link
Contributor Author

After trying to add support for ipv6_v6only I conclude that it is an option to use with great care: it conflicts with inet and in some environments, results in a badarg error from gen_tcp:listen/2 without any details whatsoever.

Those who want to disable IPv4 entirely will have to do it at the kernel level one way or another, so what this PR already has will be enough.

@michaelklishin michaelklishin merged commit df203f9 into main Mar 1, 2025
3 checks passed
@michaelklishin michaelklishin deleted the osiris-116 branch March 1, 2025 02:08
michaelklishin added a commit that referenced this pull request Mar 1, 2025
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

Successfully merging this pull request may close these issues.

Configure replication listener to use IPv6

1 participant