Skip to content

Security: csiber/homelab

Security

docs/security.md

Security & Hardening

Security is essential in a homelab environment.
Even for personal projects, I apply best practices to reduce risks.


Key Measures

  • πŸ”‘ SSH Hardening – key-based auth, disable root login, custom ports
  • πŸ”’ Fail2ban – brute force protection for SSH and services
  • 🌐 Firewall & VLANs – isolate IoT devices from LAN
  • πŸ›‘οΈ Cloudflare Proxy – hides real IP, adds DDoS protection
  • πŸ” Strong Passwords & 2FA – for Unraid, Unifi, and critical apps

Example SSH Config

# /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
AllowUsers csiber

Roadmap

Document VLAN firewall rules in detail

Deploy IDS/IPS (Suricata or Unifi Threat Management)

Enable Zero Trust Cloudflare Access for admin services


🟦 docs/backup.md

# Backup & Recovery

A strong backup strategy is critical to protect homelab data.

---

## Strategy

- πŸ—‚οΈ **Docker volumes** β†’ rsync to local backup drive (daily)  
- ☁️ **Critical configs** β†’ sync to Cloudflare R2 (encrypted)  
- πŸ“€ **VM snapshots** β†’ stored on NVMe cache, rotated weekly  
- πŸ”„ **Parity checks** β†’ monthly Unraid array verification  

---

## Example: rsync backup script

```bash
rsync -av --delete /mnt/user/appdata/ /mnt/user/backups/appdata/

Roadmap

 Add offsite backup sync (R2 or Backblaze B2)

 Automate with cron + notification system

 Test disaster recovery scenarios

There aren’t any published security advisories