Administration réseau domestique

VérifiéPrudence

Gère le réseau domestique de Tim : connexion SSH aux machines (Synology NAS, Mac dobro), administration du NAS Synology (paquets, Docker, disques, logs), contrôle de Tailscale et du reverse proxy Caddy. Utile pour transférer des fichiers, dépanner la connectivité ou exécuter des commandes à distance.

Spar Skills Guide Bot
DevOpsIntermédiaire
5002/06/2026
Claude Code
#home-network#synology-nas#tailscale#ssh#caddy

Recommandé pour

Notre avis

Gérer et dépanner le réseau domestique de Tim : connexion SSH, administration du NAS Synology, gestion de Tailscale, proxy inverse Caddy et transferts de fichiers.

Points forts

  • Accès centralisé à tous les appareils via Tailscale et SSH
  • Commandes spécifiques pour le NAS Synology (synopkg, Docker, disques)
  • Intégration avec Caddy pour la gestion des sous-domaines HTTPS
  • Dépannage réseau structuré (DNS, connectivité, relais DERP)

Limites

  • Nécessite que 1Password soit déverrouillé pour l'authentification SSH
  • Certaines commandes (comme tailscale CLI) nécessitent un chemin absolu sur macOS
  • Les opérations destructrices demandent une confirmation manuelle
Quand l'utiliser

Idéal pour toute tâche d'administration du réseau domestique : connexion à des machines distantes, gestion du NAS, dépannage réseau ou proxy.

Quand l'éviter

Évitez pour des tâches non liées au réseau domestique ou lorsque l'accès à Tailscale/1Password n'est pas disponible.

Analyse de sécurité

Prudence
Score qualité90/100

The skill administrates a home network with powerful tools like Docker, SSH, and system services. It includes safety measures (user confirmation for destructive operations) and legitimate purposes, but the inherent capabilities warrant caution.

Points d'attention
  • Uses privileged commands (sudo docker, ssh, rsync) that could alter or destroy data if misused.
  • Manages network infrastructure (Caddy, Tailscale) which could disrupt services.
  • Relies on external authentication (1Password SSH agent) that must be properly secured.

Exemples

Check Synology disk usage
SSH into the Synology NAS and check disk usage and disk health.
Restart Caddy proxy
SSH into dobro and restart the Caddy reverse proxy service.
Troubleshoot Tailscale connectivity
Check Tailscale status and verify connectivity to the Synology NAS.

name: home-network-admin description: Manage and troubleshoot Tim's home network, SSH into devices, administer the Synology NAS, and work with Tailscale. Use when the user wants to (1) SSH into or run commands on remote machines (synology, dobro), (2) manage the Synology NAS (files, packages, Docker, backups, Surveillance Station), (3) troubleshoot network connectivity or DNS, (4) check Tailscale status or manage the tailnet, (5) transfer files between machines, (6) check device health or disk usage, (7) manage the Caddy reverse proxy on dobro (*.hopperhosted.com), (8) any home server or home network administration task.

Home Network Admin

Administer Tim's home network: devices connected over Tailscale, with a Synology NAS and Macs accessible via SSH.

Read references/network-inventory.md for the full device list, IPs, SSH config, and network topology before performing any task.

SSH Access

SSH configs are defined in ~/.ssh/config. Use the short aliases:

  • ssh synology - Synology NAS (custom port, user tdhopper)
  • ssh dobro - Mac (default port, user thopper)

SSH keys are managed via 1Password agent. If SSH fails with auth errors, verify 1Password is unlocked and the SSH agent is running.

Synology NAS Administration

The Synology runs DSM. Common admin tasks via SSH:

  • Packages: synopkg list (installed), synopkg status <pkg>, synopkg start/stop <pkg>
  • Docker/Container Manager: sudo docker ps, sudo docker logs <container>, sudo docker compose (compose files often in /volume1/docker/)
  • Disk/volume health: df -h, cat /proc/mdstat, synodisk --enum
  • Shared folders: typically under /volume1/
  • DSM web UI: https://synology:5001 or https://100.86.145.18:5001
  • Logs: /var/log/ and DSM log center

For destructive operations (deleting files, stopping services, modifying configs), confirm with the user first.

Tailscale

Tailscale connects all devices over a WireGuard mesh. Run tailscale status to discover the tailnet name and device list.

  • On macOS, the tailscale CLI may not be on PATH. Use: /Applications/Tailscale.app/Contents/MacOS/Tailscale
  • Check status: tailscale status (or the full path above)
  • Verify connectivity: tailscale ping <hostname>
  • All devices are reachable via MagicDNS (e.g., synology.<tailnet>.ts.net)

Caddy Reverse Proxy (on dobro)

Caddy runs on dobro, providing HTTPS reverse proxy for *.hopperhosted.com. The Caddyfile is at ~/Caddyfile (tracked in yadm). TLS uses Cloudflare DNS-01 challenge.

See references/network-inventory.md for the full list of proxied subdomains and backends.

  • Manage Caddy on dobro: ssh dobro then brew services restart caddy, caddy reload --config ~/Caddyfile
  • Logs: journalctl -u caddy or brew services info caddy depending on how it's managed
  • Edit Caddyfile locally: it's tracked in yadm dotfiles at ~/Caddyfile

File Transfer

  • Between local and remote hosts: scp or rsync using the SSH aliases
  • Example: rsync -avz ~/files/ synology:/volume1/backup/files/
  • For large transfers, prefer rsync with --progress

Troubleshooting

  1. Can't SSH: Check 1Password is unlocked, verify Tailscale is connected (tailscale status), ping the Tailscale IP
  2. DNS issues: Check if MagicDNS resolves (dig @100.100.100.100 synology.<tailnet>.ts.net), fall back to Tailscale IPs directly
  3. NAS unresponsive: Try ping, check DSM web UI, SSH may still work even if DSM is sluggish
  4. Slow network: Check if traffic is going through Tailscale relay (tailscale status shows DERP relay vs direct connection)
Skills similaires