MacOS® has a feature that allows one or more folders to be shared with computers on the local network. It is also possible to use this function with your MyCrypNet network to perform secure, simple and fast exchanges between your different machines. We’ll see the different configuration steps to perform, first on the system that will share files, then on the one who will accede to it.
A MyCrypNet network set up
To install MyCrypNet on each device to be connected, you can access the MyCrypNet installation tutorials here :
Your MyCrypNet tunnel must be connected and functional on every device you want to share between (see the tutorial « How to organize a 3 distant access points MyCrypNet network »).
Once you have two MyCrypNet accesses set up, you will be able to share your files.
On the MacOS® sharing computer: create a user account
For security reasons, file sharing needs authentication, ie you have to enter a username and password when you accede to a shared directory.
The best way to do this is to create a local user account on the machine that will share a folder. This user account will be called by the one who wants to accede to this shared folder. Obviously it’s possible to create as many user accounts as you want to.
The first step is to accede the System Preferences and then « Users & Groups ».
You must click on the padlock at the bottom left to identify and unlock the user account add feature. Then you can click on the « + » button to create a new account.
All you have to do is enter the information in this account and validate it.
The identifiers of this new user account have to be communicated to the person who will, later on, accede to the shared folders. Always prefer a secure communication method (encrypted message, etc.).
On the MacOS® sharing computer: enable the file sharing feature
Go to System Preferences and then Sharing to enable this feature.
You must check « File Sharing » in the left column, then access « Options ».
To set up a cross-platform file share, check « Share files and folders using SMB » and select the user(s) of the machine whom you will allow remote access to.
On the MacOS® sharing computer: configure sharing
On the folder you want to share, you must right-click and then « Get Info ». You also can do “ctrl-click” and then « Get Info ».
At this point we can check the box « Shared folder » which makes this folder available in a network share.
You also have to configure the permissions on this folder, at the bottom of this window.
It’s possible to add permissions to a user through the « + » button and configure its rights (read, write or both).
How to accede from a MacOS® computer to a shared folder
In order to accede from a MacOS® computer to a shared folder located on another machine or another device (its operating system doesn’t matter), you have to get the Finder’s « Go » menu and then « Connect to server ».
In the opening window, you’ll have to indicate the name of the remote MyCrypNet access which you want to connect to, to be able to accede its shares, starting by « smb:// » to define the access protocol (SMB protocol). (Reminder : « How to organize a 3 distant access points MyCrypNet network »).
In this example, « alice » is the name of the MyCrypNet access that shares the files.
Authentication with a username and password will be requested. Then finally the choice of the shared directory to accede to.
This makes it possible to use the built-in file-sharing feature of MacOS®, without installing third-party software and preserving all the advantages of your MyCrypNet private network: security, speed and simplicity.