IPC Version

XX.7.0.68

Update

2018.12.19

IPC Version

XX.8.0.1

Update

2022.4.20


1.What is NAS?

NAS(Network-Attached Storage) is dedicated file storage that enables multiple users and heterogeneous client devices to retrieve data from centralized disk capacity. Users on a local area network (LAN) access the shared storage via a standard Ethernet connection. 

Advantages of using NAS:

The key benefits of network-attached storage are mainly speed and convenience. Instead of a hard drive connecting to your computer, NAS connects to your wireless router-enabling multiple users from multiple devices to access the files on the network.

A NAS storage appliance is a computing device that can be attached anywhere on the network, primarily to store files. NAS solutions are nothing more than dedicated file servers.

Disadvantages of using NAS:

NAS appliances share the network with their computing counterparts and hence the NAS solution consumes more bandwidth from the network. Also, the performance of the NAS will depend upon the amount of bandwidth available.


2.How to create NAS ?

The two ways which Milesight Network Cameras supported are NFS and SMB/CIFS.

2.1 NFS

2.1.1 Physical NAS

If you have a physical NAS , take Synology as an example, you need to configure as follow.

Create a shared folder


Go to “Control Panel”→ “Shared Panel”→ “Create”.

Image 1


Enable NFS Service and give NFS permission to the Network Camera

Go to “Control Panel”→ “File Services”→ “Win/Mac/NFS”


Image 2

Go to “Shared Folder”→ “Edit”→ “NFS Permissions"

Image 3

Note: Enable “Allow connection from non-privileged ports(ports higher than 1024)


2.1.2 Non-Physical NAS

If you do not have a physical NAS, you can create a NAS in Linux, take Ubuntu as a example.

Note: The version of the Ubuntu i used to test is 18.04

Create a root user 

# sudo passwd

# su 

Image 4

System update

# apt update

Image 5

Set up Static IP

For different versions of Ubuntu, the way to set a static IP address is different and unable to explain the setup method for all versions here, so please search for how to modify the static IP address for your Ubuntu version

Install NFS

# apt-get install nfs-kernel-server

Image 6

Create Shared projects

# cd  /home/sky 

# mkdir nfs_shared (Note: You can create the folder in different path as you want.)

# chmod 777 -R nfs_shared

Image 7

Modify the NFS configuration file

# vi /etc/exports

Image 8

Insert content

# /home/sky/nfs_shared *(rw,sync,no_root_squash,no_subtree_check)

Image 9

Start the service

# service portmap restart

# service nfs-kernel-server restart

Image 10


2.2 SMB/CIFS

2.2.1 Physical NAS

If you have a physical NAS , take Synology as an example, you need to configure as follow.

Create a user

Now NAS has only two users, admin and guest who have the highest privilege. Do not use the admin user as the user to access the daily files if there is no special case. Therefore, you need to create other users.

Go to “Control Panel”→ “User”→ “Create”.

Image 11

Create a shared folder

Go to “Control Panel”→ “Shared Panel”→ “Create”.

Image 12

Setting permissions: “Shared Panel”→ “Edit”→ “Permissions”.

Image 13

2.2.2 Non-Physical NAS

If you do not have a physical NAS, there are two ways to create a NAS if you want to add NAS by SMB/CIFS.

On PC side

Select shared users and give permissions

Select the folder you want to share → “Properties”→ “Sharing”.


Image 14

Image 15

Image 16

On Linux (take Ubuntu as an example)

Note: The version of the Ubuntu i used to test is 18.04

Create a root user 

1.# sudo passwd

2.# su 

Image 17

System update

# apt update

Image 18

Set up Static IP address:

For different versions of Ubuntu, the way to set a static IP address is different and unable to explain the setup method for all versions here, so please search for how to modify the static IP address for your Ubuntu version 

Install Samba

#apt-get install samba

Image 19

Create Shared projects

# mkdir /home/share (Note: You can create the folder in different path as you want)

# chmod 777 /home/share

Image 20

Image 21

Modify the Samba configuration file

# vi /etc/samba/smb.conf

Image 22

Insert content at the end

# [share]

Path=/home/share

available=yes

browseable=yes

public=yes

writeable=yes

Image 23

Note: The file path you need to fill in on camera side is the Folder in parentheses [...] , like share as shown above picture. You also can change the Folder name as you want.

Image 24

Image 25

Add and enable Samba user

#smbpasswd -a sky

#smbpasswd -e sky

Image 26

Start the service

# service smbd restart

Image 27

3.How to add NAS to Milesight Network Camera?

3.1 NFS

Go to “Storage”→“Storage Management”, and input some information about the NAS.

Image 28

Make sure the Status is “Online”.

Image 29

Note: If the Status is “Unformatted”,please click the button  to format the NAS.

Image 30

3.2 SMB/CIFS

1. Go to “Storage”→“Storage Management”, and input some information about the NAS.

Image 31


2.Make sure the Status is “Online”.

Image 32


4.How to use NAS on Milesight Network cameras?

After NAS setting, you can use it in Events. Take Motion Detection as an example. 

Setting the Motion region and schedule first, then enable “Save Into Storage” ,choose the file format and save the setting. 

Image 33

Note: In the case of having both SD card and NAS, the file will be saved to NAS first when enable “Save into Storage”.



——————END——————