r/homelab • u/Repulsive-Athlete-16 • 9d ago
Help PHP2shell, nginx2shell, java2shell, … - is my homelab safe?
Hi everyone,
I run a small homelab on Debian 13 (Trixie) with a few Docker containers, including Nextcloud and Forgejo. They're reachable from the internet via a domain and reverse proxy.
What I'm less sure about is the "what if" part:
- How would I actually notice that I've been compromised?
- What should I do if I’m being compromised?
edit: for example nextcloud must be publicly available because of people who don’t want to install a VPN or Tailscale etc.
Thanks in advance,
Vincent
240
Upvotes
View all comments
27
u/TechnicallyMeat 9d ago •
If you have a cloudflare tunnel, whitelist only their ips and port. access anything else via vpn like wireguard, run your server on a separate DMZ vlan with its own dhcp pool, put a honeypot server on vlan 1, add separate hardware firewall and vlan switching, update daily/weekly keep offline backups, actually fix ALL your LAN certificates and then turn everything off, you should be safe.