43

I have everything I host and expose behind authelia (which requires 2fa) as middleware or as the only login method with oicd, thus far it seems to work well, of course I get a bunch of malicious traffic and spam but this gets to authelia and stops there, I don't even see multiple tried login tries ever so I felt pretty safe. However it does seem that everyone uses either fail2ban or crowdsec in addition so I have been wondering if it would really add any security in my setup or if I'm missing something. I'm sure it wouldn't hurt but crowdsec always seemed a little too complex for me and I don't want something I don't fully understand in my security layer and I never saw a nice way to setup fail2ban so never bothered. Afaik there's no webui or such things and you have to manually make working regex for everything. I'd like to know if I'm missing something or if anyone has tipps to give

you are viewing a single comment's thread
view the rest of the comments
[-] hendrik@palaver.p3x.de 11 points 2 days ago* (last edited 2 days ago)

Authelia should come with rate limiting to protect against brute-force attacks. That could be enough.

I'd generally advise to make sure such protection actually works. Like look up the limits and try to login with a wrong password 30 times... Especially if you added stuff on top (fail2ban, crowdsec...). Has happened to me I misconfigured stuff and it didn't limit anything... Now I check to make sure for important bits like an authentication service.

[-] wreckedcarzz@lemmy.world 4 points 2 days ago

Do make sure that you can eventually get back in after testing, though. Sure, it's safer when even you can't access it, but... :p

[-] Arda@piefed.social 3 points 2 days ago

i do have ratelimiting configured but yes i never tested it which i should

[-] hendrik@palaver.p3x.de 1 points 2 days ago* (last edited 2 days ago)

Guess if it works, you don't really need fail2ban as f2b pretty much does the same job. I mean it can do more, but you don't really need to protect against PHP issues, broken wordpress plugins etc since none of that is part of Authelia.

I use fail2ban, as I have SSH running and several other services exposed which come with default fail2ban configurations. And I never got crowdsec running properly. So I skipped it. I think frequent updates and all those things are more important than a web application firewall anyway.

this post was submitted on 15 Sep 2026
43 points (97.8% liked)

Selfhosted

62162 readers
633 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS