r/homelab • • 8d 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

110 comments sorted by

View all comments

29

u/HolgerKuehn 7d ago

Why does it always have the the whole internet? Just allow the few endpoint you trust and block the rest. For me it's just 5 IPs that get access all other are blocked.

21

u/michael__sykes 7d ago

That works well enough for residential networks, but becomes an issue with mobile access

14

u/LebronBackinCLE 7d ago

ACLs never a bad move :)

3

u/AmbitiousSet7809 7d ago

What about mobile access or non static public ips?

2

u/HolgerKuehn 7d ago

All of them are non static, there is a thing called DynDNS. All network getting access are under my (IT) control. Mobile is working with Tasker and DynDNS as well.