NAS
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.
Contents
Mount Points
To use an external storage device, the device needs to be mounted.
Packages
- kmod-usb-storage
Kernel module for USB storage support. - block-mount
If this package is installed, the web interface shows Mount Points under System. - kmod-fs-ext4
Kernel module for EXT4 (native Linux file system) support. - ntfs-3g
In case NTFS (native Windows file system) support is needed,
this user-space driver provides read and write access.
In general, the performance of user-space drivers is not as good as
drivers implemented as kernel modules.
Configuration
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'
Network Shares
Packages
- samba4-server
The actual server software that shares the files. - luci-app-samba4
This package shows Network Shares under Services in the web interface.
Configuration
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.
SFTP
Secure File Transfer Protocol
Packages
- openssh-sftp-server
SFTP server software.
DLNA
Digital Living Network Alliance
Packages
- minidlna
DLNA compliant server software. - luci-app-minidlna
This package shows miniDLNA under Services in the web interface.
External Links
CONTENT.html | source | 2022-05-22 | 4.4 KB |