Qnap

Aus d0b
Zur Navigation springenZur Suche springen

Allgemein

Qnap Port List

   FTP - 21 by default and configurable.
   Passive FTP port - 55536 ~ 56559 by default and configurable
   SSH - 22 by default and configurable. 
   SMTP - 25 by default and configurable.
   Web Server/HTTP - 80; HTTPS - 8081 by default and configurable. 
   Netbios/SAMBA - 137, 138, 139, 445
   SSL/HTTPS - 443 by defualt and configurable
   AFP - 548
   Rsync - 873 by default and configurable.
   RTRR - 8899 by default and configurable
   MySQL - 3306 by defualt and configurable
   System management, Web File Manager, Multimedia Station, Download Station, Surveillance Station
   8080 by default and configurable. 
   Twonkymedia - 9000
   Telnet - 13131 by default and configurable
   BitTorrent - 6881~6999 by default and configurable.
   Syslog - 514 by defualt and configurable
   SNMP - 161 by default and configurable
   TFTP - 69 by default and configurable
   PPTP - 1723
   OpenVPN - 1194 by defualt and configurable
   RADIAUS  - monitors UDP ports 1645, 1812 (for RADIUS Authentication) and 1646, 1813 (for RADIUS Accounting) for RADIUS requests.
   LDAP Server - 389
   NFS - 2049, 111 and dynamic ports

Turbo NAS TS-439 Pro II+

Openssh

Eigentlich hat die Orginale Firmware schon einen sshd, aber der will nur den user "admin" reinlassen unter anderem. Das war anfangs kein problem, bis ich git über den ipkg-manager installiert hatte und einen anderen user via ssh einloggen wollte. Eine kurze Recherche ergab, das jemand schon ein Kochrezept dafür bereitliegen hat.

SNMP

OpenNMS

Kochrezept

Icinga Plugin

Gibt es schon, mehr dazu hier

OID`s

MIB OBJECT LABEL OBJECT ID Data Type Value (Example)
MIB-2 .1.3.6.1.2.1 -
- system .1.3.6.1.2.1.1 -
- sysDescr.0 .1.3.6.1.2.1.1.1.0 OctetString "GS1910-24HP 24x1G Ethernet Switch"
- sysUpTime.0 .1.3.6.1.2.1.1.3.0 TimeTicks "Timeticks: (9400662) 1 day, 2:06:46.62"
- sysContact.0 .1.3.6.1.2.1.1.4.0 OctetString "your@email.tld"
- sysName.0 .1.3.6.1.2.1.1.5.0 OctetString "switch_23"
- sysLocation.0 .1.3.6.1.2.1.1.6.0 OctetString "Rack 3"
Interfaces .1.3.6.1.2.1.2 -
at .1.3.6.1.2.1.3 -
IP .1.3.6.1.2.1.4 -
ICMP .1.3.6.1.2.1.5 -
TCP .1.3.6.1.2.1.6 -
UDP .1.3.6.1.2.1.7 -
SNMP .1.3.6.1.2.1.11 -
HOST-RESOURCES-MIB host .1.3.6.1.2.1.25 -
- hrStorageSize .1.3.6.1.2.1.25.2.3.1.5.33 Integer -
- hrStorageUsed .1.3.6.1.2.1.25.2.3.1.6.33 Integer -
Enity MIB .1.3.6.1.2.1.47 -
MAC Adress entPhysicalSerialNum 1.3.6.1.2.1.47.1.1.1.1.11.1 OctetString "aa-bb-cc-dd"
Firmware Version entPhysicalFirmwareRev .1.3.6.1.2.1.47.1.1.1.1.9.1 OctetString "V2.00(AAAY.0)C0"
NAS-MIB storage .1.3.6.1.4.1.24681 - -
- SystemCPU-Usage .1.3.6.1.4.1.24681.1.2.1.0 OctetString "0,90 %"
- SystemTotalMem .1.3.6.1.4.1.24681.1.2.2.0 OctetString "989.0 MB"
- SystemFreeMem .1.3.6.1.4.1.24681.1.2.3.0 OctetString "266.0 MB"
- CPU-Temperature .1.3.6.1.4.1.24681.1.2.5.0 OctetString "43 C/109 F"
- SystemTemperature .1.3.6.1.4.1.24681.1.2.6.0 OctetString "42 C/107 F"
- HdNumber-Usage .1.3.6.1.4.1.24681.1.2.10.0 OctetString "4"
- SysFanNumber .1.3.6.1.4.1.24681.1.2.14.0 Integer "1"
- SysFanSpeed .1.3.6.1.4.1.24681.1.2.15.1.3.1 OctetString "1280 RPM"
- SysVolumeNumber .1.3.6.1.4.1.24681.1.2.16.0 Integer "1"
- SysVolumeStatus .1.3.6.1.4.1.24681.1.2.17.1.6 OctetString "Ready"
- HdSmartInfo .1.3.6.1.4.1.24681.1.2.11.1.7.{1-4} OctetString "Good"
- HdTemperature .1.3.6.1.4.1.24681.1.2.11.1.3.{1-4} OctetString " 36 C/96 F"

Troubleshooting

AFP / CNID-DB

Fehlerbeschreibung: Es erscheint folgende Fehlermeldung beim Zugriff auf eine Freigabe via AFP: "Something wrong with the volume's cnid db using temporary cnid db instead. Check server messages for details!"

Fehlerursache: Es scheint die CNID-DB ("Catalog Node ID" Datenbank) der AFP-Freigabe Schaden genommen zu haben.

Fehlerbehebung: .AppleDB der jeweiligen Freigabe löschen via ssh, AFP erstellt den Ordner neu. QNAP Howto

ssh admin@<nas-ip>                                                   // Als admin via ssh anmelden
find / -name cnid2.db |  sed 's/\/share/rm -r \/share/' > rm_cnid    // CNID-DB`s suchen | "rm -r" einfügen > Ergebnis in Datei speichern
chmod u+x rm_cnid                                                    // User Rechte zur Ausführung des Skripts geben
./rm_cnidb                                                           // Skript ausführen