This guide outlines the steps to set up shared drive access across workstations using Tailscale. It's designed to facilitate sharing firmware files for microcontrollers across your environment.
On the server or computer that will host the shared files, select an existing folder or create a new one for sharing. For instance, a folder named Firmware
.
- Right-click the folder, select
Properties
, then go to theSharing
tab. - Click
Advanced Sharing
, checkShare this folder
, and set a share name. - Click
Permissions
to set who can access the folder and their rights (read, write, etc.). - Apply the settings.
- Open
System Preferences
>Sharing
. - Check
File Sharing
, then click the+
underShared Folders
to add your folder. - Add users under
Users
and set their access rights.
- Install Samba if not already installed:
sudo apt install samba
(for Debian/Ubuntu). - Edit the Samba configuration file:
sudo nano /etc/samba/smb.conf
. - Add your shared folder at the end of the file:
![note] this is a BASH script
path = /path/to/your/folder
read only = no
browsable = yes
- Restart Samba:
sudo systemctl restart smbd
.
Ensure all workstations and the server hosting the shared folder are connected via Tailscale.
- Windows: Use File Explorer and access the shared folder by entering
\\{Tailscale_IP_of_server}\sharename
in the address bar. - macOS: In Finder, select
Go
>Connect to Server
, then entersmb://{Tailscale_IP_of_server}/sharename
. - Linux: Use the command line or your file manager. For the command line, you might mount the share using
mount -t cifs //${Tailscale_IP_of_server}/sharename /local/mount/point -o user=username
.
- Log into Tailscale Admin Console to manage your network's ACLs.
- Modify ACLs to ensure they allow the necessary traffic between workstations and the server hosting the shared folder. You might need to add or adjust rules to explicitly allow connections to the server's Tailscale IP from other devices on your network.
For automating tasks like updating firmware files in the shared folder, consider using scripts or automation tools suitable for your server's operating system. For instance, you could use cron jobs on Linux or Task Scheduler on Windows to periodically check for new firmware versions and update the shared folder accordingly.
- Security: Make sure your shared folder permissions are correctly set to prevent unauthorized access.
- Testing: After setup, test accessing the shared folder from different workstations to ensure everything is configured correctly.
- Documentation: Document the IP addresses, share names, and access permissions for future reference and troubleshooting.