Xiaomi Network Cameras (e.g. Mi Home Security Camera 360)ยฐ Xiaomi Smart Camera C400>) We can record video to the cloud, but it requires a subscription and is limited in volume, NAS-Xiaomi drive (such as Mi) NAS Xiaomi AX6000 It's a hard drive that's connected. It gives you unlimited space, control over data, and leak protection.
However, simply connect the camera to the NAS Not enough: You need to set up access protocols correctly (SMB, FTP or NFS), User rights and recording parameters. This article provides a step-by-step guide to the specifics of Xiaomi firmware from 2023-2026, as well as solving typical problems (for example, connection errors or recording interruptions).
We'll look at this.
- ๐ง How to choose the right one NAS Xiaomi Cameras (Comparison of Models).
- ๐ก Network access setting: SMB vs FTP โ What's best for video streaming.
- ๐ Configuration of access rights and protection against unauthorized viewing.
- โ๏ธ Optimization NAS for round-the-clock recording (sleep modes, caching).
1. Choice. NAS Xiaomi cameras: what models are suitable
Not everyone. NAS It can handle a continuous stream of video from multiple cameras. Xiaomi devices are critical to three parameters:
- Productivity CPU โ For video transcoding (e.g. Mi) NAS on Realtek RTD1296 It can handle 2-3 cameras, and Synology can do it. DS220+ โ 10+).
- Support for protocols โ Xiaomi cameras work with SMB (recommended and FTP (lesser).
- Volume and type of disks - for round-the-clock recording in 1080p minimum 2 TB (compression) H.265) and HDD supportive 24/7 (for example, WD Red or Seagate IronWolf).
In the table below โ a comparison of popular NAS, compatible with Xiaomi cameras:
| Model NAS | Max. Cameras. | Protocols | Features | Price (2026) |
|---|---|---|---|---|
| Xiaomi Mi NAS | 2โ3 | SMB, FTP | Budget, weak. CPU, no RAID | ~15 000 โฝ |
| Synology DS220j | 5โ7 | SMB, NFS, FTP | Support for Surveillance Station (video surveillance software) | ~25 000 โฝ |
| QNAP TS-251D | 8+ | SMB, iSCSI | Powerful. CPU, support AI-video | ~35 000 โฝ |
| Xiaomi AX6000 + HDD | 1โ2 | SMB (through USB) | Not specialised for video surveillance, but a cheap solution | ~10 000 โฝ |
Important: If you use support cameras ONVIF (For example, Xiaomi Smart Camera C400), We can connect them to NAS through a software program such as Synology Surveillance Station or QNAP QVR Pro. This will give additional functions: motion detection, notifications and archiving.
โ ๏ธ Attention: NAS Xiaomi Mi Router (for example, through the USB-ports are not designed for long-term video recording; they overheat and can shut down after 12 to 24 hours of operation.
Preparation NAS: Creating a shared folder and user
Before setting up the camera, you need to prepare the storage for NAS:
- Connect. NAS router via cable (Wi-Fi is not recommended due to delays).
- Create a separate folder for records (for example, Camera_Records).
- Configure the user with limited rights (record only, without access to other data).
Example of user creation in Synology DSM:
- Go to the Control Panel. โ User โ Create.
- Please indicate the name (for example, camera_user) password.
- In the section General folders give access only to Camera_Records Reading/Writing Rights.
- Disable access by SSH Telnet for this user (security!).
For Xiaomi Mi. NAS:
1 Open the web interface at http://[IP_ your NAS]
2. Go to the section "User Management" โ "Add User".
3 In the Home Catalogue field, specify the path /share/Camera_Records.
4. Save and restart the NAS.Created a separate folder for records|Users are configured with recording rights only|NAS cabled to the router|Port port SMB (445) Open in router settings-->
Critical error: If you do not restrict user rights, the camera can accidentally delete or encrypt other files on the computer. NAS (Cases with viruses on vulnerable Xiaomi firmware in 2022 are known).
3. Setup Xiaomi camera to record on NAS
The instructions are relevant for cameras with firmware Mi Home 2.0+ (2023โ2026) Older versions (until 2022) may require an update via the Mi Home app.
The Mi Home Security Camera 360ยฐ 2K:
- Open the Mi Home app, select the camera โ Settings โ Warehouse โ Network disk.
- Enter the connection data: ๐ Server address: \\[IP_yours_NAS]\Camera_Records (for SMB) or ftp://[IP_yours_NAS] (for FTP). ๐ User name and password: user data created on NAS. ๐ Folder name: Leave empty (user root folder is used).
Recording quality
1080p/H.265
Continuous recording
On the move.
For support cameras ONVIF (For example, Xiaomi Smart Camera C400):
- Turn it on. ONVIF in the camera settings (Settings) โ Additionally. โ ONVIF).
- PO NAS (For example, Synology Surveillance Station, add a camera as ONVIF-device, indicating IP-address and port 8000.
Monitoring of the free space:
Set up disk filling notifications (e.g. in Synology) DSM This is done in the Control Panel. โ Notifications โ Use a script to automatically clean old records:
#!/bin/sh
find /share/Camera_Records -type f -mtime +30 -delete # Deletes files older than 30 daysSave him like cleanup.sh into /usr/local/bin/ and add to cron (start once a day).
How to check the load on NAS?
5. Solving typical problems
If the camera doesn't record NAS or the recording is interrupted, check the following points:
| Problem. | Possible cause | Decision |
|---|---|---|
| Connection error SMB | Port 445 is closed on the router or NAS | Open the port in the settings of the router and firewall NAS |
| Recording ends in 5-10 minutes. | Timeout session SMB/FTP | Increase the timeout in the settings NAS (For example, smb.conf: deadtime = 30) |
| Files are recorded but not reproduced | Damage during transmission over the network | Use it. FTP Passively or switch to the SMB |
| NAS overheats and shuts down | Insufficient cooling | Add an external cooler or reschedule NAS air-ventilated |
To diagnose the connection, use commands in the terminal NAS:
Checking the availability of the camera over the network
ping [IP_Cameras]
Checking the SMB port (445)
telnet [IP_NAS] 445
SMB error log (for Synology/QNAP)
cat /var/log/samba/log.smbdIf the camera says "I failed to connect to the network drive":
- Check what's on. NAS The camera has the same version of the protocol. SMB (for example, SMB2 or SMB3). On Xiaomi Mi. NAS By default, the outdated can be included. SMB1, which is not supported by new cameras.
- Turn it off. IPv6 on camera and NAS (Sometimes it is in conflict with routing).
๐ก
The most common cause of failure is a mismatch of protocol versions SMB. Xiaomi 2023 cameras+ demand SMB2 or SMB3, old NAS (until 2020, they can only work with SMB1.
6. Alternative methods of recording on NAS
If the standard protocols (SMB/FTP) Not working or unstable, consider alternatives:
1. Recording through RTSP + Video surveillance software:
- ๐ฅ Set the camera's flow. RTSP (In Mi Home: Settings โ Additionally. โ RTSP).
- ๐ฅ๏ธ Set it on NAS Software like MotionEye, ZoneMinder or Shinobi (there are versions for the Synology/QNAP).
- ๐ Add the flow rtsp://[IP_camera]:554/stream1 programmatically.
2.The cloud + localization:
- โ๏ธ Enable your entry to the Mi Cloud (even a free 7-day rate).
- ๐ฅ Set your mind to NAS Downloading records from the cloud (e.g., via rclone or Synology Cloud Sync).
3.Use of NFS (for advanced users):
Protocol NFS faster SMB, But it requires manual adjustment:
- Turn on the service. NFS control panel โ File services.
- Add the export rule to IP-camera addresses with rw rights,no_root_squash.
- On camera, point the way. nfs://[IP_NAS]/Camera_Records.
โ ๏ธ Attention: When in use RTSP or NFS Xiaomi cameras may lose touch with the NAS shift IP-Solution: assign the camera and NAS static IP online or set up reservations DHCP router.
7.Security: Protecting records from hacking
Camera footage is confidential, to prevent leaks:
- ๐ Disable anonymous access to the folder on NAS (even testing).
- ๐ก๏ธ Use it. VPN remotely NAS (For example, WireGuard on Synology/QNAP).
- ๐ Update your firmware regularly NAS Vulnerabilities in Mi Home 2022 allowed remote control of cameras).
- ๐ก Set up a separate subnet for cameras on the router (isolate them from other devices).
Example of WireGuard setup VPN synology:
- Install the Synology package VPN Server.
- Create a WireGuard profile and export the config.
- Import the config to the WireGuard app on your phone/PC.
- Connect to VPN before accessing the records NAS.
Additional protection:
If NAS store critical records (such as from street cameras), set up two-factor authentication (2FA) To access the web interface. In Synology, it's done in the Control Panel. โ Security โ Two-step verification.