How to set up NAS Xiaomi for Network Camera Recording: A Complete 2026 Guide

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).
๐Ÿ“Š What Xiaomi Camera Are You Using?
Mi Home Security Camera 360ยฐ
Xiaomi Smart Camera C400
Xiaomi Mi Home Camera 2K
Another model
I haven't bought it yet.

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:

  1. 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+).
  2. Support for protocols โ€“ Xiaomi cameras work with SMB (recommended and FTP (lesser).
  3. 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 NASMax. Cameras.ProtocolsFeaturesPrice (2026)
Xiaomi Mi NAS2โ€“3SMB, FTPBudget, weak. CPU, no RAID~15 000 โ‚ฝ
Synology DS220j5โ€“7SMB, NFS, FTPSupport for Surveillance Station (video surveillance software)~25 000 โ‚ฝ
QNAP TS-251D8+SMB, iSCSIPowerful. CPU, support AI-video~35 000 โ‚ฝ
Xiaomi AX6000 + HDD1โ€“2SMB (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:

  1. Connect. NAS router via cable (Wi-Fi is not recommended due to delays).
  2. Create a separate folder for records (for example, Camera_Records).
  3. Configure the user with limited rights (record only, without access to other data).

Example of user creation in Synology DSM:

  1. Go to the Control Panel. โ†’ User โ†’ Create.
  2. Please indicate the name (for example, camera_user) password.
  3. In the section General folders give access only to Camera_Records Reading/Writing Rights.
  4. 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:

  1. Open the Mi Home app, select the camera โ†’ Settings โ†’ Warehouse โ†’ Network disk.
  2. 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):

  1. Turn it on. ONVIF in the camera settings (Settings) โ†’ Additionally. โ†’ ONVIF).
  2. 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 days

Save him like cleanup.sh into /usr/local/bin/ and add to cron (start once a day).

How to check the load on NAS?
Open the web interface NAS and find the "Resource Monitoring" or "System Monitor" section. CPU You can download more than 70% of the time in an hour, reduce the number of cameras or improve performance (for example, add RAM).

5. Solving typical problems

If the camera doesn't record NAS or the recording is interrupted, check the following points:

Problem.Possible causeDecision
Connection error SMBPort 445 is closed on the router or NASOpen the port in the settings of the router and firewall NAS
Recording ends in 5-10 minutes.Timeout session SMB/FTPIncrease the timeout in the settings NAS (For example, smb.conf: deadtime = 30)
Files are recorded but not reproducedDamage during transmission over the networkUse it. FTP Passively or switch to the SMB
NAS overheats and shuts downInsufficient coolingAdd 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.smbd

If the camera says "I failed to connect to the network drive":

  1. 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.
  2. 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:

  1. Turn on the service. NFS control panel โ†’ File services.
  2. Add the export rule to IP-camera addresses with rw rights,no_root_squash.
  3. 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:

  1. Install the Synology package VPN Server.
  2. Create a WireGuard profile and export the config.
  3. Import the config to the WireGuard app on your phone/PC.
  4. 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.

What to do if NAS hack?
1. disconnect it from the network. 2. Change all passwords (including the administrator password). 3. Check files for unfamiliar processes (such as miners). 4. Restore data from the backup or reinstall the software NAS. 5.Configure monitoring of suspicious activity (e.g., through Synology Security Advisor).

FAQ: Frequent questions about setting up NAS Xiaomi cameras

Can I use an external hard drive instead of a NAS?
Yes, but with reservations: ๐Ÿ–ฅ๏ธ Connect the disk to the router with USB-port (for example, Xiaomi) AX6000). โš ๏ธ Routers are not optimized for permanent recording โ€“ the drive can shut down after 12 to 24 hours. ๐Ÿ”ง Set up. SMB-server in the router web interface (usually in the section) USB-Recommendation: For long-term use, it is better to buy a budget NAS (for example, Synology DS220j).
How much space does it take to record from a single camera?
A rough calculation for the Xiaomi camera 1080p (H.264): ๐Ÿ“น Continuous recording: ~15โ€“20 GB/day (30 frame/s). ๐Ÿšถ Traffic record: ~2โ€“5 GB/day (depending on activity). ๐Ÿ”„ Compression H.265: saves up 40% Formula: [Permission] ร— [FPS] ร— [Bitreit] ร— 86400 seconds / 8.
How to set up a recording from multiple cameras to one NAS?
Create a separate folder and user for each camera: NAS: /share/Camera1, /share/Camera2 In Mi Home: For each camera, specify your path and credentials. ๐Ÿ”„ To balance the load, distribute the cameras over different disks. NAS (if RAID). Important: If there are more cameras 3โ€“4, use NAS Intel Celeron processor is not weaker (e.g. Synology) DS920+).
Can I view the records from NAS phone-on?
Yeah, there are a few ways: ๐Ÿ“ฑ Through the app NAS: DS File (Synology), Qfile (QNAP). ๐ŸŒ Through the web interface: open in the browser http://[IP_NAS]:5000 (port may differ). ๐ŸŽฌ Video surveillance software: if you use Surveillance Station, install the app DS Cam. For remote access without any VPN Configure QuickConnect (Synology) or myQNAPcloud.
What to do if NAS netless?
Check in order: ๐Ÿ”Œ Physical connection: cable, indicators on NAS router. ๐ŸŒ IP-address: NAS It must be on the same subnet as the camera (for example, the camera, 192.168.1.x). ๐Ÿ”ฅ Firewall: Turn it off temporarily on NAS test-router. ๐Ÿ”„ Reboot: Sometimes restarting helps NAS If there's a problem, check the logs. NAS Errors (System logs section).