Table of Contents
Connecting a NAS to a TetherBox
A TetherBox can record to a NAS on your network. It connects to a shared folder over SMB (Windows file sharing), so the NAS needs only a folder, a user and SMB switched on. There are four stages:
- Check the NAS and drives are suitable.
- Create the volume, choosing ext4.
- Set up the shared folder, SMB and a user in DiskStation Manager (DSM).
- Send TetherX the details, and we connect the TetherBox.
The steps below use Synology's DSM. For QNAP, TrueNAS, Asustor and UGREEN, see Other NAS Makes.
1. Check the NAS and Drives
Recording writes to the NAS every second of every day, so it needs:
- 24/7-rated CMR drives, such as the NAS and surveillance models in Storage Hardware Recommendations. Desktop and SMR drives fall behind continuous recording.
- Enough capacity and write workload for your cameras. See Capacity and Annual Workload to size both.
- A NAS dedicated to recording where possible. File shares, backups or other recording software on the same drives compete with the TetherBox for them.
Tip: Not sure your NAS or drives are suitable? Send us the models before you buy or set anything up, and we will check them.
2. Create the Volume with ext4
In DSM, create the storage pool and volume. When the Storage Creation Wizard asks you to select a file system, choose ext4, even though the wizard marks Btrfs as recommended.
Tip: Why ext4 rather than Btrfs? Btrfs suits office use: snapshots, replication and folder quotas protect files that people edit. Surveillance footage is written once and overwritten as the oldest expires, so those features add nothing. ext4 is the faster choice for this workload and puts less load on your drives.
Tip: Btrfs also works. It tends to slow down as the volume fills, and a recording volume stays nearly full once it reaches its retention period, so ext4 is the better long-term choice. If your NAS model only offers Btrfs, use it, and leave WriteOnce, file compression, data checksum and shared folder quota off when you create the shared folder below. These options only appear on Btrfs volumes, so on ext4 there is nothing to change.
3. Set Up DSM
Create the Shared Folder
- Go to Control Panel > Shared Folder and click Create > Create Shared Folder.
- Use a short name without spaces, such as
tetherx, and choose the new volume as the Location. - Leave Enable Recycle Bin and Protect this shared folder by encrypting it off.
Warning: With the Recycle Bin on, footage that TetherX deletes to free space moves to a #recycle folder instead, and the volume fills up. With encryption on, the folder cannot be written to after a NAS restart until someone enters its key, so recording stops.
Turn On SMB
- Go to Control Panel > File Services > SMB and tick Enable SMB service.
- Open Advanced Settings and set Maximum SMB protocol to SMB3.
Create a User for the TetherBox
- Go to Control Panel > User & Group > User and click Create.
- Name the user, such as
tetherx, and give it a strong password. - On the Assign shared folders permissions page, give it Read/Write on the footage folder and No access to every other folder.
Tip: Use a user only the TetherBox signs in with, not an administrator account. Avoid commas in the password: the connection settings use commas to separate options.
Fix the NAS Address
Give the NAS a fixed IP address, in DSM or as a reservation on your router. The TetherBox must be able to reach it on TCP port 445: if the NAS is on a different subnet or VLAN from the TetherBox, route between them first.
Recommended Settings
These settings keep the NAS writing steadily and recording without interruption.
| Setting | Where in DSM | Set to | Why |
|---|---|---|---|
| Drive hibernation | Control Panel > Hardware & Power > Drive Hibernation | none | Recording wakes the drives every few seconds, so hibernation only adds delays. |
| Restart after a power failure | Control Panel > Hardware & Power > General | On | Recording resumes without anyone visiting the site. |
| Local Master Browser | Control Panel > File Services > SMB > Advanced Settings | Off | Not needed, and it turns on passwordless guest access. |
| Transport encryption and server signing | Control Panel > File Services > SMB > Advanced Settings | Disable or Client defined, never Force | They add processing to every packet of a continuous stream on your own network. |
| Opportunistic locking, SMB2 lease and durable handles | Control Panel > File Services > SMB > Advanced Settings | On (the default) | They suit how the TetherBox caches and reconnects. |
| SSD cache | Storage Manager | None, or read-only with Skip sequential I/O ticked | Synology's cache speeds up random access, not continuous video writes. |
| Drive write cache | Storage Manager > HDD/SSD > Action > Configure Write Cache | On, with a UPS | Synology strongly recommends a UPS while write cache is on, to protect data in a power cut. |
| RAID resync speed | Storage Manager > Global Settings | Lower the impact on overall system performance | A drive rebuild does not starve recording. |
| Auto Block | Control Panel > Security > Protection | Add the TetherBox IP address to the Allow List | Repeated reconnects can never block the TetherBox. |
| Universal Search and Antivirus | Their own apps | Keep the footage folder out of both | New video files would otherwise be indexed and scanned constantly. |
4. Send TetherX the Details
Contact TetherX with:
| Group | Details |
|---|---|
| Hardware | The NAS make and model, and its operating system version (such as DSM 7.2). The make and model of every drive, and whether an NVMe cache is fitted. The RAID or SHR level, and the free space on the volume. |
| Recording load | How many cameras will record to the NAS, and their bitrate. |
| Network | The NAS IP address, and the speed of the link between the NAS and the TetherBox. Say if they are on different subnets or VLANs. |
| Access | The TetherBox serial, the exact shared folder name, and the NAS username and password. |
We check the NAS and drives can sustain the recording load, test that the TetherBox can write to the share, then connect it. The TetherBox starts recording to the NAS automatically.
Other NAS Makes
The same principles apply to every make: a plain volume without snapshots, a shared folder with its recycle bin and encryption off, SMB 3, a dedicated user, drive sleep off and a fixed IP address. The table lists what differs.
| Make | File system | Shared folder: leave off | SMB and power |
|---|---|---|---|
| QNAP | Use QTS (ext4), not QuTS hero (ZFS). QNAP itself recommends QTS for surveillance recording. Choose a static volume if offered, otherwise thick; avoid thin. | Network Recycle Bin, folder encryption, snapshots, WORM and SMB encryption. Encryption and WORM cannot be changed after the folder is created. | Control Panel > Network & File Services > Win/Mac/NFS/WebDAV > Microsoft Networking > Advanced Options: set Highest SMB version to SMB 3. Leave disk standby off. |
| TrueNAS | ZFS only. Create a dedicated dataset with atime off, deduplication off, sync Standard, compression LZ4 or off, and no snapshot tasks. | Create the share with the Default Share purpose, not Multi-Protocol or Time Locked. | System Settings > Services > SMB sets only a minimum version; SMB 3 works without change. Tick SMB Access on the user. |
| Asustor | Choose EXT4. | Network Recycle Bin, folder encryption and Windows ACL. | Services > SMB: set the maximum to SMB 3 and leave Local Master Browser off. Leave disk hibernation off. |
| UGREEN | Choose EXT4. | Recycle bin, which is on by default, and Encrypt folder. | Control Panel > Hardware & Power > Power: leave Hard drive sleep off. |
Warning: ZFS slows down as it fills. TrueNAS advises that ZFS performance starts to fall above about 80% full, although write-once recording tolerates up to 90 to 95%. Because a recording volume stays nearly full, set a quota on the TrueNAS dataset so the pool stays below 90%.
Tip: On Asustor, the public folder is open to every user by default. Give the TetherBox user access to its footage folder only.
Related Articles
- Storage Hardware Recommendations - Drives for 24/7 recording
- TetherBox Recording Capacity - Calculate your needs and compare storage options
- External Storage Required - Set up a USB drive instead
- Build a TetherBox on Your Own Hardware - Build a TetherBox and attach recording storage
Referenced in: