DEV Community

Serguey Shinder
Serguey Shinder

Posted on

We Moved Our Branch Shared Drives Into Azure and Nine Branches Could Not Reach Them Because Their Broadband Blocked One Port

Each of our branches has a shared drive for the documents that do not belong in any system: cutting lists for the timber saw, photographs of damaged deliveries, the yard rota, the price lists suppliers send as spreadsheets. For years these lived on a small server in each branch. Last spring we retired the servers and moved the drives to Azure Files, which presents cloud storage as an ordinary Windows network drive.

We piloted it at head office and at our two largest branches, and it was excellent. Drives mapped at sign in and files opened quickly. We scheduled the remaining branches over three weekends.

On the Monday after the second weekend, nine branches rang to say their drive had gone. Windows reported that the network path could not be found. The branches that worked and the branches that did not had the same PCs, the same build and the same settings.

They did not have the same internet. Our larger sites connect over a private network that reaches Azure through our own link. The smaller branches use business broadband with direct internet access, and the nine that failed were all with one provider. Azure Files speaks SMB, the Windows file sharing protocol, over TCP port 445, and that provider blocks port 445, as many do. The port was abused by worms for years, and SMB was never designed to cross the open internet. Microsoft's documentation warns about exactly this, in a section we had not read because our pilot sites never needed it.

For two days those branches emailed files to one another while we arranged a fix. Each branch router now builds a VPN tunnel to our Azure network, and the drives are reached through a private address inside it, so the broadband provider sees only encrypted VPN traffic. That is how it should have been designed from the start.

Our migration checklist now records how every site connects to the internet, and every pilot includes at least one site of each kind. We had tested the product well. We had tested it only from the places where it was always going to work.

– Serguey Shinder

Top comments (0)