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

Docker swarm node communication issues #1473

Open
ytk929 opened this issue Aug 20, 2023 · 0 comments
Open

Docker swarm node communication issues #1473

ytk929 opened this issue Aug 20, 2023 · 0 comments

Comments

@ytk929
Copy link

ytk929 commented Aug 20, 2023

Network Environment:
One ubuntu server is userd as the swarm manager node, The ip address of one of its network interfaces is 192.168.200.82, and the route "to 10.3.71.0/24" is configured via netplan, and the default route is on another interface.
One CentOS server, only one network interface, the ip address is 10.3.71.15, as a swarm worker. The network administrator maps 10.64.128.100 to the manager node through the proxy server so that worker 10.3.71.5 can access the manager, and then maps ports 12377/tcp, 17946/tcp, 7946/udp, and 4798/udp from 10.64.128.100 to ports 2377/tcp, 7946/tcp, 7946/udp, and 4798/udp on 192.168.200.82.

Qustion:
The containers between the manager node and the worker node cannot communicate with each other.
The worker node can successfully join the swarm by executing the command 「 docker swarm join-token 10.64.128.100:12377」 and the manager node can deploy the service to the worker node, and all containers join the same overlay mode network. All containers in the manager node can communicate with each other, and the same in the worker node. But the containers between the manager node and the worker node cannot communicate with each other.

Investigation:
On the server 192.168.200.82, I can successfully telnet to port 7946/tcp of 10.3.71.15, and successfully nc to port 7946/udp and 4798/udp of 10.3.71.15.
On the server 10.3.71.15, I can successfully telnet to port 12377/tcp and 17946/tcp of 10.64.128.100, and successfully nc to port 7946/udp and 4798/udp of 10.64.128.100.
On the server 10.3.71.15, I can see the swarm manager address is 192.168.200.82 by "docker info". I use tcpdump to see that 10.3.71.15 is communicating with port 7946/tcp and 7946/udp and 4798/udp of 192.168.200.82 , then I use iptables tool to redirect the traffic of 7946/tcp and 7946/udp and 4798/udp of 192.168.200.82 to port 17946/tcp and 7946/udp and 4798/udp of 10.64.128.100. I use tcpdump again and find that 10.3.71.15 is communicating with port 17946/tcp and 7946/udp and 4798/udp of 10.64.128.100, but the containers between the manager node and the worker node still cannot communicate with each other. I want to ask what might be the reason?

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