Idea: Use fail2ban to write to server_proxy.conf #3025
instantdreams
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just noodling this idea around, but for hosts that don't support iptables - or who want to be able to cleanly backup their configurations - I've been exploring if fail2ban could write to a file used by Nginx Proxy Manager.
Nginx supports a module called nxg_http_access_module. This allows the use of
deny
andallow
directives to blacklist and whitelist IP addresses.I'm not sure if Nginx Proxy Manager is built with this module enabled:
If it was, the following structure could be added to file
data/nginx/custom/server_proxy.conf
which is one of the custom configuration files:Then, within the fail2ban configuration, a custom action could be defined such as this:
To make this work, fail2ban needs access to the volume where the npm file
server_proxy.conf
is located, and npm would need the http_access module loaded.Is this reasonable?
Beta Was this translation helpful? Give feedback.
All reactions