meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hw:zyxel_nas326 [2018/08/06 09:40] niziakhw:zyxel_nas326 [2020/04/27 08:33] (current) niziak
Line 1: Line 1:
 +====== 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 ====== ====== Basic setup ======
  
-  * admin password+  * admin password (default login is ''admin'' and password ''1234'')
   * enable SSH   * enable SSH
     * copy pub key     * copy pub key
   * enable HTTPS   * enable HTTPS
   * set NTP and TZ   * set NTP and TZ
 +  * Control Panel --> Maintenance --> Power
 +      * Enable Wake On LAN
 +      * Always Power On
   * disable services   * disable services
     * Control Panel --> Service -->      * Control Panel --> Service --> 
Line 11: Line 24:
       * WebDAV       * WebDAV
  
-====== Instal FFP ======+====== 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]]   * Download [[http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/web_prefix|web_prefix]]
Line 22: Line 52:
   * Install   * Install
     * Midnight Commander     * 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]]
 +<code bash>
 +wget http://wolf-u.li/u/441 -O /ffp/bin/uwsiteloader.sh
 +chmod a+x /ffp/bin/uwsiteloader.sh
 +</code>
 +Modify uwsiteloader.sh and add ''--no-check-certificates'' to ''wget'' invocation.
 +
 +<code bash>
 +uwsiteloader.sh
 +slacker -U
 +slacker -a
 +</code>
 +
 +Install:
 +  * uli:screen
 +  * uli:sudo
 +  * <del>uli:openvpn uli:lzo</del> 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 ====
 +
 +<code bash>opkg install syslog-ng</code>
 +
 +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)]]
 +
 +<file /ram_bin/etc/init.d/rcS2>
 +...
 +/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  
 +</file>
 +
 +I don't know where it is started. Simple solution is to add
 +''/opt/bin/killall /usr/sbin/syslog-ng'' into 
 +<file /opt/etc/init.d/S01syslog-ng>
 +#!/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              
 +</file>
 +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''
 +<code bash>opkg update</code>
 +<code bash>opkg install net-tools-ifconfig profile-hook zyxel-modules-3.10.39 kmod openvpn-openssl</code>
 +
 +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.
 +