question

MichaelHengeli-0869 avatar image
0 Votes"
MichaelHengeli-0869 asked AndreasBaumgarten commented

Mount an Azure VM as a Samba share onto my local Mac

I have an Azure VM machine running Ubuntu 18.04-LTS.

I'd like to create an smb fileshare folder on the VM and then mount that folder on my local Mac. I have attempted to install samba on the VM and have it running with a created file share folder. I've used ufw to allow samba and its ports (139 and 445).

I am attempting to mount the file share using the public IP of the VM but I don't get a connection. Nmap does not show those ports open, even though the actual VM shows ufw active and allowing them.

Is there a service available that can allow me to connect to the VNet that my VM is running on? Is there another firewall layer that is blocking Samba to the public IP?

Thanks, I'm new to using Azure and to LInux as well.

azure-virtual-networkazure-firewall
· 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.

Hi @MichaelHengeli-0869 ,

Did the answer work for you? Are there any additional questions to this topic?

If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A

----------
Regards
Andreas Baumgarten

0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @MichaelHengeli-0869 ,

you should check if a Network Security Group (NSG) is associated with your VM or/and Azure vNet Subnet.
If so, appropriate inbound access rules must be defined for the ports.
https://docs.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works


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

Regards
Andreas Baumgarten

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.