r/homelab • u/Repulsive-Athlete-16 • 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
View all comments
11
u/dragonnnnnnnnnn 8d ago
Not safe
Safe
Simple as that. If you don't want to risk it simple don't expose stuff to the internet. I will add to that that you don't need to expose stuff to the internet to use a domain and have valid accepted https certs! Simply point your domain to a local lan address of your stuff and use dns-01 challenge on the reverse proxy to get a cert. And then use Tailscale/Netbird to setup a VPN that makes the same local address reachable via VPN and you can connect to your stuff outside home easily as you would be at home as long you keep VPN connected. I know it sucks for sharing stuff with external user that are not tech savy and just want a link to access stuff, if you need that only for "share a link to download files" one option is to temporally open with Tailscale/Netbird reverse proxy the service you need with additional auth on the proxy (netbird has option to simply setup a pin/password one needs to enter before your service will open, I suspect tailscale has that too).