Schuby
Occasional Visitor
Ok bear with me here and I'll explain what I'm trying to do.
I have a FreeNAS server setup that currently hosts a website that has a port forward rule on my router. I wanted to install fail2ban or SSHGuard in a seperate jailed environment and have it monitor each of my jail's connections (this can be done via mounting syslogs and whatnot, but I won't get into that).
What I'm hoping I can do is have that fail2ban (or SSHGuard) installation in my jailed environment send the block commands to my router (maybe using iptables?). That way the router is the one blocking the connections and not the jail itself.
Hopefully that makes sense, but I wanted to see if anyone had a similar configuration or experience running something like this.
The closest thing I found was this:
https://sourceforge.net/p/fail2ban/mailman/message/25619733/
But I'm having a hard time understanding how they accomplished it (or if it even worked).
Thoughts?
I have a FreeNAS server setup that currently hosts a website that has a port forward rule on my router. I wanted to install fail2ban or SSHGuard in a seperate jailed environment and have it monitor each of my jail's connections (this can be done via mounting syslogs and whatnot, but I won't get into that).
What I'm hoping I can do is have that fail2ban (or SSHGuard) installation in my jailed environment send the block commands to my router (maybe using iptables?). That way the router is the one blocking the connections and not the jail itself.
Hopefully that makes sense, but I wanted to see if anyone had a similar configuration or experience running something like this.
The closest thing I found was this:
https://sourceforge.net/p/fail2ban/mailman/message/25619733/
But I'm having a hard time understanding how they accomplished it (or if it even worked).
Thoughts?