A network attached storage (NAS) provides file-based data storage
to other devices on the network. The files can be shared between the devices.
This article is complementary to OpenWrt.
To use an external storage device, the device needs to be mounted.
In the web interface, the option Mount Points edits the following file:
/etc/config/fstab
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config mount
option enabled '1'
option label 'SSD'
option target '/mnt/ssd'
The option Network Shares edits the following file:
/etc/config/samba4
config samba
option workgroup 'WORKGROUP'
option charset 'UTF-8'
option description 'Samba on OpenWRT'
option interface 'lan'
option macos '1'
option allow_legacy_protocols '1'
config sambashare
option name 'ssd'
option path '/mnt/ssd'
option read_only 'no'
option guest_ok 'yes'
option create_mask '0666'
option dir_mask '0777'
Do not forget to restrict the access to the share to the LAN interface.
Secure File Transfer Protocol
Digital Living Network Alliance