cannot telnet to Azure vm port of docker swarm

MOHAMMED RASHID 26 Reputation points
2021-06-30T11:50:09.463+00:00

Hi All,

HI All,

How to communicate docker swarm communication between nodes. Please help me out on this question any links or notes will be helpful or direct answer

I have 2 Server in Cloud

GCP as a Master Node
Azure as a Worker Node

I want to connect worker node to master node do that i have enable ports 4789, 7946, 2377 on both gcp and azure. Here is what i did

GCP - 34.66.1xx.xx
Azure - 40.71.1xx.xx

Ping working in both gcp and azure
ping 34.66.1xx.xx - working gcp/azure
ping 40.71.1xx.xx – working gcp/azure

telnet is not working in azure
telnet 34.66.1xx.xx 2377 - working gcp/azure
telnet 34.66.1xx.xx 7946 - working gcp/azure
telnet 34.66.1xx.xx 4789 - not working gcp/azure

telnet 40.71.1xx.xx 2377 – not working gcp/azure
telnet 40.71.1xx.xx 7946 - not working gcp/azure
telnet 40.71.1xx.xx 4789 - not working gcp/azure
Error:-
Trying 40.71.1xx.xx…
telnet: Unable to connect to remote host: Connection refused

In Azure i have enable ICMP also but working
In Terminal of (Azure VM) as i try to join worker node into master node of (GCP)
sudo docker swarm join --token SWMTKN-1-0ey1668q838llgllt6xokqr6we2l8bxxxxxxxngk8t8fvtd3k4d1enxxxxxqwvzasdg0174sfvacn 34.133.8xxx.xx:2377
Error response from daemon: Timeout was reached before node joined. The attempt to join the swarm will continue in the background. Use the “docker info” command to see the current swarm status of your node.

Even i did netstat -tulpn | grep LISTEN - Azure but in GCP is showing
there it is not showing me any open ports

I dont know where im wrong and im new to this please help me out

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
695 questions
Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
169 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,336 Reputation points Microsoft Employee
    2021-07-05T07:29:51.29+00:00

    @MOHAMMED RASHID , Thank you for your question.

    Can you check if telnet to the required ports on the impacted virtual machine succeeds from another virtual machine in the same virtual network subnet?

    If so, can you please check if the impacted Azure VM's network interface is connected to a Network Security Group or if the Virtual Network Subnet in which you have deployed the Virtual Machine is connected to a Network Security Group?

    Please refer to this article for How-tos

    The required ports should be explicitly allowed from the Internet on the network security group associated with the virtual network subnet (if any) and also on the network security group associated with the VM's network interface (if any).

    Please ensure that the Network Security Group rules allowing access to the required ports from the Internet are not superseded by a higher priority rule that denies access to the ports/a range of ports containing the required ones from the Internet.

    Additionally please check if there are Firewalls, Network Virtual Appliances or other network devices deployed which are blocking traffic from the internet to the VM on the required ports

    0 comments No comments

  2. MOHAMMED RASHID 26 Reputation points
    2021-07-22T10:06:56.517+00:00

    No Thanks plse close the ticket

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.