====== Zyxel NAS326 ====== ===== Resources ===== [[ftp://ftp.us.zyxel.com/NAS326/|FTP NAS326]] ====== Reset button ====== * Default password and IP adddres - press and wait until 1 beep * Factory reset - press and wait until 2 beep, then keep pressed at least 5 seconds ====== Basic setup ====== * admin password (default login is ''admin'' and password ''1234'') * enable SSH * copy pub key * enable HTTPS * set NTP and TZ * Control Panel --> Maintenance --> Power * Enable Wake On LAN * Always Power On * disable services * Control Panel --> Service --> * Media Server * WebDAV ====== iSCSI ====== First disable IPv6 and restart NAS, or manually remove IPv6 iSCSI portals using ''targetcli'' commandline. [[https://www.smallnetbuilder.com/nas/nas-reviews/33001-zyxel-nas326-2-bay-personal-cloud-storage-reviewed|ZyXEL NAS326 2-Bay Personal Cloud Storage Reviewed]] * Storage Manager --> iSCSI * iSCSI LUNs --> Create * Name: ''PVE1-ISOs'' * Location, Capacity 100GB, Thin provisioning * iSCSI Targets --> Create * Name: ''NAS326-iSCSI-PVE1-ISOs-target'' * Allowed initiator IQN: ''pve1'' , password... * ====== Instal Metarepository ====== [[https://homeforum.zyxel.com/discussion/1583/new-mirror-for-nas-central-org|New mirror for nas-central.org]] * Download [[http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/web_prefix|web_prefix]] * Put ''web_prefix'' file to ''ftp://admin@192.168.0.168/admin/zy-pkgs'' (create **zy-pkgs** subdir) * App Center -> Browse -> All Apps -> Refresh Icon(Retreive List From Internet) * Only the MetaRepository package should show up. * Install it * re-request the list * You should see the official Taiwanese repository, merged with new one (ffp, btsync, anyterm, MetaRepository, Tweaks, Dropbear, MidnightCommander). If you still see only MetaRepository, disable it, enable it again, and retry. * Install * Midnight Commander * Tweaks * entware-ng * ffp (see notes below) * restart the NAS ====== Instal FFP ====== Consider usign only Entware-ng: FFP is aging. The base system is unmaintained, and it dates from 2012. 3th party developers are doing a lot of work to update parts of it, but for beginners it's hard to gather the newest packages together, partly due to a missing package management. ===== FFP 3rd party packages ==== Add more package sites using [[https://nas-tweaks.net/373/uwsiteloader-tool-to-download-the-sites-definitions-for-packages-of-the-fun_plug-0-7/|uwsiteloader.sh]] wget http://wolf-u.li/u/441 -O /ffp/bin/uwsiteloader.sh chmod a+x /ffp/bin/uwsiteloader.sh Modify uwsiteloader.sh and add ''--no-check-certificates'' to ''wget'' invocation. uwsiteloader.sh slacker -U slacker -a Install: * uli:screen * uli:sudo * uli:openvpn uli:lzo don't install, kernel 3.10. modules are missing in FFP uli repo ===== using entware-ng & FFP ==== By default PATH is set by FFP, so to execute entware-ng use full path: ''/opt/bin/opkg'' or update PATH by sourcing ''. /opt/etc/profile''. ====== Entware-ng ====== It resides in /opt ===== syslog-ng ==== opkg install syslog-ng Problem: Zyxell is already using ''syslog-ng'' and ''/opt/var/log/Entware-ng.log'' shows: ''Starting syslog-ng... . already running.'' Boot process: [[http://zyxel.nas-central.org/wiki/Boot_process_(300_series)]] ... /usr/sbin/zylog_no_logging syslog 1 ... if [ -e /etc/zyxel/syslog-ng/enable_syslog.flag ]; then /usr/bin/python /usr/local/apache/web_framework/models/syslogng_main_model.pyc fi I don't know where it is started. Simple solution is to add ''/opt/bin/killall /usr/sbin/syslog-ng'' into #!/bin/sh ENABLED=yes PROCS=syslog-ng ARGS="" PREARGS="" DESC=$PROCS PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/bin/killall /usr/sbin/syslog-ng . /opt/etc/init.d/rc.func NOTE: opkg install psmisc ===== OpenVPN ===== Use OpenVPN package from Entware-NG, because this repo contains necessary kernel 3.10.39 module ''tun'' Add ''src/gz Mijzelf http://downloads.zyxel.nas-central.org/Users/Mijzelf/Entware-ng/binaries/armv7'' into ''/opt/etc/opkg.conf'' opkg update opkg install net-tools-ifconfig profile-hook zyxel-modules-3.10.39 kmod openvpn-openssl Edit ''/opt/etc/init.d/S20openvpn'' and: * enable ''tun'' module loading: ''insmod /opt/lib/modules/3.10.39/kernel/drivers/net/tun.ko'' * update config file namei Test openvpn ''openvpn --config /opt/etc/openvpn/myconfig.conf'' ====== Issues ====== wget: invalid option -- 'N' Problem is in PATH. FFP installs full wget into ''/ffp/bin'' and changes default user ''PATH'' variable, but system still use one from ''/usr/sbin/wget'' Restart the router, login as ''admin'', switch to root using ''su'' and then try to use wget.