Setting Up An External Fileshare

1 minute read

Description:

You may need to be able to share files with clients outside of your internal network. I ran into a situation like this some time ago at my last job. Since we are already hosting a website, we just added a new site to our web server for users to download files from there.

NOTE: For files that are sensitive by nature, it is absolutely essential not to follow this guide => this is for files you don’t care who gets. I recommends a SFTP server for secure file transfers.

To Resolve:

  1. Log in to your DNS provider (ours is WorldWideDNS) and find an external IP to use.

  2. Make a new entry for subdomain.domain.com. We used “stor.example.com”.

  3. On the internal network, log in to the machine that is public facing => ours is a web server we use to host our website.

  4. Open IIS if that’s what you use and “Create a new site”. We did this and called it “stor”:

setting-up-an-external-fileshare

  1. Login to the domain controller. Go to DNS (A or AAAA)= stor on x.x.x.x where x = IP address of your web server

  2. Go to https://www.guidgenerator.com/ and copy a random GUID.

  3. Now go back to the web server and create a folder with the name of the random GUID under the new directory “stor” and place whatever files in it.

    • It is not necessary to create a random GUID folder when sharing files publicly. We did this because we don’t want average internet browsers to access these files on our site. The information is not sensitive and if someone wanted the files they could get them => it’s just a precautionary measure.
  4. Now it’s time to test. Access it from web browser on internal network. http://webserverhostname/stor/random-guid/filename. Do you get a download prompt?

  5. Wait 10 minutes for DNS to propagate and try to access from computers outside the network. If so, send the link to whomever needs access to your files.

Comments