<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[fail2ban behind reverse proxy (nom)]]></title><description><![CDATA[<p dir="auto">Hi there, I am hosting a service for mainly me and also some family members. I want it to become more.</p>
<p dir="auto">Currently the chain just as follows: interwebz &lt;-&gt; UDM &lt;-&gt; npm &lt;-&gt; services.<br />
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.</p>
<p dir="auto">I now want to add f2b to this whole chain.<br />
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.</p>
<p dir="auto">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.<br />
f2b sees and uses the public IP for the checks/bans.</p>
<p dir="auto">So now I am thinking how to solve that.</p>
<ol>
<li>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.</li>
<li>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.</li>
</ol>
<p dir="auto">So, what's your opinion? How do you fine folks handle that in your environment?<br />
Option 2 seems to be more elegant, as it would be "at the entry" and let's me easily add additional services later.<br />
But I don't know, if that's a path worth digging in to.</p>
]]></description><link>https://forum.ieu.app/topic/e597d2f7-c5ab-4664-8b2b-9fdd4a689c39/fail2ban-behind-reverse-proxy-nom</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 01:10:30 GMT</lastBuildDate><atom:link href="https://forum.ieu.app/topic/e597d2f7-c5ab-4664-8b2b-9fdd4a689c39.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Aug 2026 20:26:15 GMT</pubDate><ttl>60</ttl></channel></rss>