question

Shamiul avatar image
0 Votes"
Shamiul asked Shamiul commented

FTP server is not accessable

Hello Concern,

I have configured FTP server in Azure portal. I can access the FTP server real IP from any Microsoft Azure VM but I am unable to access the FTP server from outside network. Is there any restriction from Microsoft site?

Link: ftp://168.63.244.60/
IP: 168.63.244.60

Thanks,
Shamiul

azure-virtual-machinesazure-virtual-machines-networking
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
1 Vote"
AndreasBaumgarten answered Shamiul commented

The NSG associated to a subnet is not required/mandatory. It's not a problem if there isn't any NSG on the subnet.

This is a how-to "how to configure FTP Server on an Azure Windows VM". Maybe you could verify the step-by step how-to with your configuration.
https://getanadmin.com/azure/configure-ftp-server-on-azure-virtual-machine/


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I just tested the How-To and it's working without any problem from a MacOs computer via Internet.

43751-ftpconnect.jpg


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten


1 Vote 1 ·
ftpconnect.jpg (237.5 KiB)
Shamiul avatar image Shamiul AndreasBaumgarten ·

Hello Andreas Baumgarten,

Thank you so much for your help.


Thanks,
Shamiul

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered Shamiul commented

The FTP Server service is running on a Linux or Windows Server VM?

To access the FTP Server service on a Azure VM you need:

  • You need to allow incoming FTP traffic on the OS firewall.

  • You need to allow inbound FTP traffic on the Network Security Group (NSG) associated with the Azure VM

  • You need to allow inbound traffic on the Network Security Group (NSG) associated with the Virtual Network/Subnet of the Azure VM


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello AndreasBaumgarten,

My FTP server is running on a Windows Server VM (Windows Server 2019 DataCenter). I have already allowed incoming FTP traffic on the OS firewall, inbound FTP traffic on the Network Security Group (NSG) associated with the Azure VM. But I can not understand how to allow inbound traffic on the Network Security Group (NSG) associated with the Virtual Network/Subnet of the Azure VM.


Thanks,
Shamiul

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered Shamiul commented

In the Azure portal navigate to the VM and select Networking.
There you can see the NIC and all associated NSGs (directly to the VM and to the subnet of the VM if there is any):

43588-nsgconfig.jpg


Also you can run the Connection troubleshoot. The first screenshot shows a "positive" the second screenshot shows a "negative" with details what is blocking (i don't have a FTP Server installed on my VM01 and no NSG inbound rule is defined for FTP).

43665-troubleshoot1.jpg

43589-troubleshoot2.jpg


Hope this helps.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten



nsgconfig.jpg (606.5 KiB)
troubleshoot1.jpg (371.1 KiB)
troubleshoot2.jpg (367.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello AndreasBaumgarten,

Thanks for your reply. Everything seems to be ok as per your screenshot. But I can not find the NSG associated with subnet. How can we find that setting? Please check the snapshots for my environment.

43656-screenshot-1.png43666-screenshot-2.png43731-screenshot-3.png



Thanks,
Shamiul

0 Votes 0 ·
screenshot-1.png (27.9 KiB)
screenshot-2.png (16.5 KiB)
screenshot-3.png (46.3 KiB)