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

Distribution listener IP address is hardcoded in listener metadata #3956

Merged
merged 1 commit into from Jan 5, 2022
Merged

Distribution listener IP address is hardcoded in listener metadata #3956

merged 1 commit into from Jan 5, 2022

Conversation

tomyouyou
Copy link
Contributor

@tomyouyou tomyouyou commented Jan 5, 2022

For security reasons, it is recommended not to listen on the all zero ip address.

Add an item to the advanced configuration file:

{kernel, [{inet_dist_use_interface, {8193,291,0,0,0,0,0,1}}]}

Use the netstat command to check the IP address of the distribution port(25672):

netstat -anp | grep 25672
tcp6       0      0 2001:123::1:25672       :::*                    LISTEN      2075/beam.smp

However, rabbitmqctl status shows:

Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication

After modification, it shows:

Interface: [2001:123::1], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication

…figured.

Add an item to the configuration file(/etc/rabbitmq/rabbitmq.config):
{kernel, [{inet_dist_use_interface, {8193,291,0,0,0,0,0,1}}]}

Use the netstat command to check the IP address of the distribution port(25672):
netstat -anp | grep 25672
tcp6       0      0 2001:123::1:25672       :::*                    LISTEN      2075/beam.smp

However, 'rabbitmqctl status' shows:
...
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
...
@tomyouyou tomyouyou closed this Jan 5, 2022
@tomyouyou tomyouyou reopened this Jan 5, 2022
@michaelklishin michaelklishin changed the title The wrong distribution listener IP address is recorded when it is configured Distribution listener IP address is hardcoded in listener metadata Jan 5, 2022
@michaelklishin
Copy link
Member

I could reproduce and verify 👍

@michaelklishin michaelklishin merged commit 5a07f72 into rabbitmq:master Jan 5, 2022
michaelklishin added a commit that referenced this pull request Jan 5, 2022
Distribution listener IP address is hardcoded in listener metadata (backport #3956)
michaelklishin added a commit that referenced this pull request Jan 5, 2022
Distribution listener IP address is hardcoded in listener metadata (backport #3956) (backport #3960)
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.

None yet

2 participants