Support
Deployment
Quick Deploy (10 Steps)
# 1. Install Debian 13 (minimal install)
# 2. Get the project
git clone https://gitee.com/gitdogcat/nas.git ~/soft/nas
# 3. Configure password
cp ~/soft/nas/.env.example ~/soft/nas/.env
# Edit .env (min 8 characters)
# 4. Deploy
sudo bash ~/soft/nas/scripts/setup.sh
# 5. Access panel
# Open http://<NAS IP>:8090setup.sh automates:
- System update + tool installation
- Samba/NFS/FTP/WebDAV service configuration
- Firewall rules + Fail2ban
- nas-panel binary + systemd service
- rclone download
- Monitoring script + cron
- Backup script + cron
Manual Panel Deploy (on existing NAS)
git clone https://gitee.com/gitdogcat/nas.git ~/soft/nas
cp ~/soft/nas/.env.example ~/soft/nas/.env
# Edit .env
cd ~/soft/nas/web
export GOPROXY=https://goproxy.cn,direct
go build -o nas-panel .
sudo cp nas-panel /usr/local/bin/
sudo systemctl enable nas-panelFAQ
Panel not accessible
- Check service:
sudo systemctl status nas-panel - Check port:
sudo ss -tlnp | grep 8090 - Check firewall:
sudo ufw status(need to allow 8090) - Logs:
sudo journalctl -u nas-panel -f
Samba connection failed
- Service running:
sudo systemctl status smbd - User exists:
sudo smbpasswd -L -v <username> - Firewall allows 139/445
- Windows:
\\NAS_IP\share, Mac:smb://NAS_IP
Forgot panel password
grep NAS_PASS ~/soft/nas/.env
sudo nano ~/soft/nas/.env # Change NAS_PASS
sudo systemctl restart nas-panelDisk not showing
- System recognizes it:
lsblk - SMART readable:
sudo smartctl -a /dev/sdX - Refresh panel: Storage → Refresh button
- LVM member not showing: verify
sudo pvsoutput
RAID sync progress
cat /proc/mdstat
# Or via panel: Storage → Pool → RAID status shows sync percentageRemote Access
The NAS is reachable on your home LAN only, by default. To use it from your phone or laptop while away, here are three routes — from zero-fuss to power-user. Read the security notes at the end before you start.
Option 1: Tailscale (recommended, free for personal use)
Think of it as a virtual ethernet cable between your devices: once set up, your phone/laptop and the NAS are always on the same LAN, and the panel and SMB shares work exactly like at home.
# Install and log in on the NAS (prints a link — open it in a browser to authorize)
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up- Install the Tailscale client on your phone/laptop and sign in with the same account
- The client shows your NAS at a
100.x.x.xaddress (e.g. 100.100.1.2) - From any network: panel at
http://100.100.1.2:8090, files at\\100.100.1.2\public(Windows) orsmb://100.100.1.2(Mac)
No public IP, no router port forwarding.
Option 2: Cloudflare Tunnel (custom domain + HTTPS)
Gives the panel a public HTTPS domain (e.g. https://nas.yourdomain.com) — again with zero ports opened on your router. Requires a Cloudflare account and a domain hosted on Cloudflare (both free).
# Install cloudflared
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt update && sudo apt install -y cloudflaredThen in the Cloudflare dashboard: Zero Trust → Networks → Tunnels → create a tunnel, run the command it gives you, and point your public hostname at http://localhost:8090.
Option 3: Public IP + DDNS + port forwarding (power users)
The classic route if your ISP gives you a public IP (often on request):
- Set up DDNS on your router (No-IP, DuckDNS, or your router's built-in option)
- Port-forward 8090 (panel) to the NAS's LAN IP
- Before exposing anything publicly, enable two-factor auth in the panel first: System → Two-Factor Auth (2FA)
Do NOT port-forward 445 (SMB) or 21 (FTP) to the internet — neither protocol is designed for it.
Security notes (please read)
- Before enabling any remote access: set a strong panel password and turn on 2FA
- Keep fail2ban running (enabled by default at install)
- Prefer the VPN-style option (Option 1): end-to-end encrypted, nothing exposed on the public internet
- The panel deliberately has no built-in "one-click remote access" — exposing your NAS publicly is a security trade-off, and we think that decision should be yours to make explicitly
Developer Docs
| Doc | Content |
|---|---|
| Architecture v1.0 | Architecture constitution, 20 recommendations review |
| Product Manual | Full deployment/usage docs |
| CHANGELOG | Version history |
| TODO | Roadmap (26 items, 15 done) |
| CONTRIBUTING.md | Contributor guide |
Service Ports
| Port | Service | Description |
|---|---|---|
| 22 | SSH | Remote management |
| 21 | FTP | vsftpd |
| 80 | HTTP | Optional, reverse proxy |
| 139, 445 | Samba | File sharing |
| 137-138 | NetBIOS | Name service |
| 2049 | NFS | Linux file sharing |
| 8080 | WebDAV | rclone serve webdav |
| 9000 | S3 | rclone serve s3 |
| 8090 | Z1 Panel | Management panel |