分类 NAS相关 下的文章

有关DiskIdxMap、SataPortMap、SasIdxMap三个参数的说明:

1、在群辉系统中,一个控制器默认只能控制9个硬盘,所以SataPortMap=的数值范围只能是0-9,0则表示屏蔽该控制器,不可以设为SataPortMap=0来隐藏引导盘!

2、如果有多个控制器的(每个主板具体有几个控制器,请查阅主板说明书),则SataPortMap=后面的数值有几位就表示有几个控制器。比如SataPortMap=148,表明第一个控制器有1个硬盘,第二个控制器有4个硬盘,第三个控制器有8个硬盘。

3、DiskIdxMap=这个参数值,按顺序从左到右每两位数为一个控制器的盘序数值,这两位数为16进制数,如果数值小于等于9或者大于10的,需要在数值前面加个0。比如DiskIdxMap=000105的意思是,第一个控制器的磁盘(引导盘)从序号1(00为序列1)开始往后排,第二个控制器的4个硬盘从序号2(01为序号2)开始往后排,第三个驱动器的8个硬盘从序号5(05为序号6)开始往后排。此时在群晖DSM7.X的系统里面看到磁盘序号就会从磁盘1(引导盘)到磁盘13。

4、这里有个小技巧,可以将控制器的盘序设置超过当前最大磁盘数量。例如我想把第1个控制器的引导盘隐藏,可以改成DiskIdxMap=0C0004,引导盘在群晖系统里面就看不到了,此时在群晖DSM7.X的系统里面看到磁盘序号就会从磁盘1到磁盘12(引导盘被隐藏了),同时还治愈了很多患有强迫症的童鞋!

5、SasIdxMap为SAS硬盘的个数,使用SATA硬盘的时候默认设置为0。

开打ssh工具,这里使用的是finalshell,登录群晖。
3、输入sudo -i然后输入群晖登录密码进入root权限。
输入密码不会显示,输入以后直接回车即可。

4、这里需要使Vi编辑器编辑sshd_config 文件。

vi /etc/ssh/sshd_config

5、使用键盘的方向按键找到如下图所示的关键字。
6、点击键盘的i键进入编辑模式,在上面步骤找到的关键字下添加 PermitRootLogin yes。
7、添加好以后点击键盘的ESC按键,然后输入wq:保存退出编辑模式。
8、输入命令修改root默认密码:synouser --setpw root xxxxxx 后面的xxxxx更换成你自己的密码。
9、输入reboot重启群晖。

10、打开winscp,使用root用户登录,登录成功,拖动一个文件测试,未提示权限不足,DSM7.0系统的root权限获取成功。

为了方便随时随地访问,我们往往需要在群晖 NAS 接入的路由上做好端口映射,不过群晖的套件那么多,每个应用的端口又是多少呢?贴心的杜老师为大家准备了群晖 NAS 全应用端口对应列表,方便您的使用!

Setup Utilities
Type Port Number Protocol
Synology Assistant 9999, 9998, 9997 UDP
Backup
Type Port Number Protocol
Active Backup for Business 5510 (Synology NAS) Note: Only used for the backup of Hyper-V or physical Windows device. 443 (vCenter Server and ESXi host), 902 (ESXi host); 5985 (HTTP for Hyper-V), 5986 (HTTPS for Hyper-V) TCP
Data Replicator, Data Replicator II, Data Replicator III 9999, 9998, 9997, 137, 138, 139, 445 TCP
DSM 5.2 Data Backup, rsync, Shared Folder Sync, Remote Time Backup 873, 22 (if encrypted over SSH) TCP
Hyper Backup (destination) 6281 (multi-version backup), 22 (if encrypted over SSH), 873 (remote data copy) TCP
Hyper Backup Vault, DSM 5.2 Archiving Backup 6281 TCP
LUN Backup 3260 (iSCSI), 873, 22 (if encrypted over SSH) TCP
Snapshot Replication 3261 (iSCSI LUN), 5566 (shared folder) TCP
Download
Type Port Number Protocol
BT 16881 (for DSM 2.0.1 or above); 6890-6999 (for DSM 2.0.1-3.0401 or earlier version) TCP/UDP
eMule 4662 TCP
eMule 4672 UDP
Web Applications
Type Port Number Protocol
DSM 5000 (HTTP), 5001 (HTTPS) TCP
File Station 5000 (HTTP, additional port can be added), 5001 (HTTPS, additional port can be added) TCP
Mail Server
Type Port Number Protocol
IMAP 143 TCP
IMAP over SSL/TLS 993 TCP
POP3 110 TCP
POP3 over SSL/TLS 995 TCP
SMTP 25 TCP
SMTPs 465 TCP
File Transferring
Type Port Number Protocol
AFP 548 TCP
CIFS smbd: 139 (netbios-ssn), 445 (microsoft-ds) TCP/UDP
CIFS Nmbd: 137, 138 UDP
FTP, FTP over SSL, FTP over TLS 21 (command), 20 (data connection in Active Mode), 1025-65535 (data connection in Passive Mode) Note: The default range varies according to your Synology product models. TCP
iSCSI 3260 TCP
NFS 111, 892, 2049 TCP/UDP
TFTP 69 UDP
WebDAV, CalDAV 5005, 5006 (HTTPS) TCP
Packages
Type Port Number Protocol
Audio Station 1900 (UDP), 5000 (HTTP, additional port can be added), 5001 (HTTPS, additional port can be added), 5353 (Bonjour service), 6001-6010 (AirPlay control/timing) TCP/UDP
Central Management System 5000 (HTTP), 5001 (HTTPS) TCP
CIFS Scale-out Cluster 49152-49252 TCP/UDP
CIFS Scale-out Cluster 17909, 17913, 19998, 24007, 24008, 24009-24045, 38465-38501, 4379 TCP
Cloud Station 6690 TCP
DHCP Server 67, 68 UDP
LDAP Server (formerly Directory Server) 389 (LDAP), 636 (LDAP with SSL) TCP
Download Station 5000 TCP
iTunes Server 3689 TCP
Logitech® Media Server 3483, 9002 TCP
Mail Station 80 (HTTP), 443 (HTTPS) TCP
Media Server 1900 (UPnP), 50001 (content browsing), 50002 (content streaming) TCP/UDP
Migration Assistant 7400-7499 DRBD
Note Station 5000 (HTTP), 5001 (HTTPS) TCP
Photo Station, Web Station 80 (additional port can be added), 443 (HTTPS) TCP
Presto File Server 3360, 3361 TCP/UDP
Proxy Server 3128 TCP
Surveillance Station 9900 (HTTP), 9901 (HTTPS) TCP
Synology Calendar 38008, 38443 CalDAV
Synology CardDAV Server 8008 (HTTP), 8443 (HTTPS) TCP
Synology Chat 5000 (HTTP), 5001 (HTTPS) TCP
Synology Contacts 5555 CardDAV
Synology Directory Server 88 (Kerberos), 389 (LDAP), 464 (Kerberos password change) TCP/UDP
Synology Directory Server 135 (RPC Endpoint Mapper), 636 (LDAP SSL), 1024 (RPC), 3268 (LDAP GC), 3269 (LDAP GC SSL) TCP
Synology Drive Server 80 (link sharing), 443 (link sharing), 5000 (HTTP), 5001 (HTTPS), 6690 (Synology Drive Client) TCP
Synology Moments 5000 (HTTP), 5001 (HTTPS) TCP
Syslog Server 514 (additional port can be added) TCP/UDP
Video Station 1900 (UDP), 5000 (HTTP), 5001 (HTTPS), 9025-9040, 5002, 5004, 65001 (for using the HDHomeRun network tuner) TCP/UDP
Virtual Machine Manager 2379-2382 (cluster network), 3260-3264 (iSCSI), 5000 (HTTP), 5001 (HTTPS), 5566 (replication), 16509, 16514, 30200-30300 TCP
VPN Server (OpenVPN) 1194, 1195 UDP
VPN Server (PPTP) 1723, 2001 TCP
VPN Server (L2TP/IPSec) 500, 1701, 4500 UDP
Mobile Applications
Type Port Number Protocol
DS audio 5000, 5001 (HTTPS) TCP
DS cam 5000, 5001 (HTTPS) TCP
DS cloud 6690 TCP
DS file 5005 (HTTP), 5006 (HTTPS) TCP
DS finder 5000 (HTTP), 5001 (HTTPS) TCP
DS get 5000 (HTTP), 5001 (HTTPS) TCP
DS note 5000 (HTTP), 5001 (HTTPS) TCP
DS photo 80, 443 (HTTPS) TCP
DS video 5000 (HTTP), 5001 (HTTPS) TCP
Synology Drive 5000 (HTTP), 5001 (HTTPS) TCP
Synology Moments 5000 (HTTP), 5001 (HTTPS) TCP
Printers, UPS, and Peripheral Equipments
Type Port Number Protocol
Bonjour 5353 UDP
LPR 515 UDP
Network Printer (IPP)/CUPS 631 TCP
Network MFP 3240-3259 TCP
UPS 3493 TCP
System
Type Port Number Protocol
LDAP 389, 636 (SLAPD) TCP
MySQL 3306 TCP
Resource Monitor/SNMP 161 TCP/UDP
SSH/SFTP 22 TCP
Telnet 23 TCP