Skip to content

Support ​

Deployment ​

Quick Deploy (10 Steps) ​

bash
# 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>:8090

setup.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) ​

bash
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-panel

FAQ ​

Panel not accessible ​

  1. Check service: sudo systemctl status nas-panel
  2. Check port: sudo ss -tlnp | grep 8090
  3. Check firewall: sudo ufw status (need to allow 8090)
  4. Logs: sudo journalctl -u nas-panel -f

Samba connection failed ​

  1. Service running: sudo systemctl status smbd
  2. User exists: sudo smbpasswd -L -v <username>
  3. Firewall allows 139/445
  4. Windows: \\NAS_IP\share, Mac: smb://NAS_IP

Forgot panel password ​

bash
grep NAS_PASS ~/soft/nas/.env
sudo nano ~/soft/nas/.env  # Change NAS_PASS
sudo systemctl restart nas-panel

Disk not showing ​

  1. System recognizes it: lsblk
  2. SMART readable: sudo smartctl -a /dev/sdX
  3. Refresh panel: Storage → Refresh button
  4. LVM member not showing: verify sudo pvs output

RAID sync progress ​

bash
cat /proc/mdstat
# Or via panel: Storage → Pool → RAID status shows sync percentage

Remote 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.

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.

bash
# 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
  1. Install the Tailscale client on your phone/laptop and sign in with the same account
  2. The client shows your NAS at a 100.x.x.x address (e.g. 100.100.1.2)
  3. From any network: panel at http://100.100.1.2:8090, files at \\100.100.1.2\public (Windows) or smb://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).

bash
# 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 cloudflared

Then 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):

  1. Set up DDNS on your router (No-IP, DuckDNS, or your router's built-in option)
  2. Port-forward 8090 (panel) to the NAS's LAN IP
  3. 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 ​

DocContent
Architecture v1.0Architecture constitution, 20 recommendations review
Product ManualFull deployment/usage docs
CHANGELOGVersion history
TODORoadmap (26 items, 15 done)
CONTRIBUTING.mdContributor guide

Service Ports ​

PortServiceDescription
22SSHRemote management
21FTPvsftpd
80HTTPOptional, reverse proxy
139, 445SambaFile sharing
137-138NetBIOSName service
2049NFSLinux file sharing
8080WebDAVrclone serve webdav
9000S3rclone serve s3
8090Z1 PanelManagement panel

Licensed under GNU AGPLv3