this post was submitted on 17 Aug 2026
40 points (97.6% liked)

Selfhosted

61923 readers
179 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
 

Hi there, I am hosting a service for mainly me and also some family members. I want it to become more.

Currently the chain just as follows: interwebz <-> UDM <-> npm <-> services. The services are mostly run in VMs or LXCs, npm runs in docker, accompanied by one Adguard home instance and another AGH instance in an LXC.

I now want to add f2b to this whole chain. I've installed f2b in the OS which runs docker (and therefore npm) (VM1) and also in the OS of my existing service (VM2). Both VMs use Ubuntu as their OS.

What I already figured out thru testing and reading is, that f2b in VM2 acts as expected when the jail is triggered, and sets the block. But nftables/ufw don't block connections coming from external, as they are coming thru npm. f2b sees and uses the public IP for the checks/bans.

So now I am thinking how to solve that.

  1. Keep f2b on VM2 and let it set the bans on VM1 over SSH. That's what some people do or so I've read.
  2. Use f2b on VM1, let it check logs on VM2 and then set the bans. That would also be possible over SSH, I'd guess. But I didn't read up on it yet.

So, what's your opinion? How do you fine folks handle that in your environment? Option 2 seems to be more elegant, as it would be "at the entry" and let's me easily add additional services later. But I don't know, if that's a path worth digging in to.

you are viewing a single comment's thread
view the rest of the comments
[–] nibbs@lemmy.zip 1 points 2 weeks ago (1 children)

Thank you for the very comprehensive write up.

Authentication will be my very next project after I solved another minor problem I've become aware of just yesterday.

It's at least the second time, someone mentioned Anubis in this thread.
I've checked the site but have to do further digging about the concept. Mostly because "AI" isn't something I adore that much, but that's a me problem. :)

[–] tremble5218@programming.dev 2 points 2 weeks ago (1 children)

No problem. I hope you found it useful. Anubis is not AI. It discerns between bots/AI scrapers and legitimate users using a combination of heuristics and a mathematical challenge, thereby protecting the website that sits behind it. Check out the documentation at: https://anubis.techaro.lol/

[–] nibbs@lemmy.zip 1 points 2 weeks ago

Oh, true. I've read so many infos about different services lately, that I must have confused that with something else.

Thank you.