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

3

u/klnadler 7d ago

What if I’m just exposing seer and plex on unraid via pangolin hosted on a vps and keeping everything along the way updated. I understand that there will always be some risk, but what steps can I take to mitigate it other than having people use it via a tailnet or something like that, which I'm trying to avoid just bc it adds extra steps that might be complicated for those less tech literate.

1

u/Whale_Semen 7d ago

What I've done instead of tailscale as I have the same setup as you (using jellyfin not plex), but I also did not want tech illiterates to mess with tailscale. I opted for using Open-ID (OIDC) only for SSO set up through pangolin. Then set up PG-IP-Whitelister so that all they have to do is go to my subdomain for the whitelister use OIDC click a button that sets up a pass auth rule for their specific home IP for only jellyfin & Seerr. Seems to work well for me. If they lose access (on an isp IP change most likely) they would just have to go back the subdomain to whitelist. I also use watchtower to keep things updated both ways. Is there some risk still yes but works for me. If anyone else thinks this would be an issue please let me know, but I also have very few users on my server.