Plugin to monitor fail2ban. It allows you to retrieve all the instant information from a local or remote fail2ban instance (via SSH) but it also keeps daily counters of blocked IP as well as a counter by country of origin of the IP address (country fetch via IP geolocation).
It also allows you to ban and unban an IP address.
This plugin does not install or configure fail2ban on the system.
Component | Version |
---|---|
Debian | Bullseye(11) & Bookworm(12) |
Jeedom | >= 4.4 |
In order to use the plugin, you must download, install and activate it like any Jeedom plugin.
There is no additional configuration to do here.
The plugin uses the Jeedom cron to update the devices (see device configuration) and the CronDaily to reset the daily counters.
Each device will correspond to a fail2ban instance on a machine. So you have to start by adding a device and giving a name.
In the configuration of the device, you will see the usual parameters common to all Jeedom device and below the parameters specific to this plugin:
The first thing is to choose the mode: local or SSH. local mode allows you to retrieve information from fail2ban installed on the Jeedom machine while SSH mode allows you to connect to a remote machine via SSH. In this case you have to enter the hostname (or IP address), the port (if different than 22), the username (who must be in the sudoers group) and the password.
You can also set how often data should be refreshed, by default it will be every 10min.
After saving the device, if the configuration is correct and if the device is activated, the plugin will retrieve the list of jails configured and for each it will create the following commands:
On top of to these commands, during each update, if a new IP is banned, the plugin will search for the geolocation of the IP address and create a new command by country of origin containing the distinct number of visits (per IP address) (only for public IP addresses)
If you have a problem, start by reading the latest plugin-related topics on community.
If despite this you do not find an answer to your question, do not hesitate to create a new topic, with the tag of the plugin (plugin-fail2ban).
At a minimum, you will need to provide:
Preformatted Text
(button </>
on community), no files!