this post was submitted on 29 Mar 2026
33 points (92.3% liked)

Selfhosted

58000 readers
576 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I've been doing some selfhosting and want to setup fail2ban for my exposed apps, but am unsure if that should be setup on my router (OpenWRT), on each server that may be exposed, or just in the Caddy container?

My setup right now is: TP-Link router with OpenWRT Lenovo M910q with Proxmox, which hosts the following:

  • Caddy in a container for reverse proxies to hosted apps
  • Home Assistant OS in VM#1
  • Other apps in docker containers on VM#2
you are viewing a single comment's thread
view the rest of the comments
[–] frongt@lemmy.zip 7 points 20 hours ago (1 children)

Don't modify containers. Send their logs to fail2ban and block things at the edge.

[–] anticonnor@lemmy.world 1 points 20 hours ago (1 children)

I'm still not sure what this means. Run fail2ban on the router or on each VM? Caddy does have a fail2ban module if it makes more sense to run there?

[–] Eirikr70@jlai.lu 6 points 20 hours ago (1 children)

Run it in some place where it can easily read the logs of your apps.

[–] anticonnor@lemmy.world 3 points 19 hours ago

Thank you both, I'm starting to get it.