Dolibarr
Configuration for a Dolibarr instance. Dolibarr is one of the leading open source ERP/CRM web applications.
This example makes the assumption that a function named banFor is defined.
See the ipset example, or the nftables example.
It also makes the assumption that a pattern named ip has been defined.
Dolibarr “logs” module must be activated !
{
streams: {
// Ban hosts failing to connect to Dolibarr
dolibarr: {
cmd: ['tail', '-Fn0', '/path/to/dolibarr/documents/dolibarr.log'],
filters: {
bad_password: {
regex: [
@'NOTICE <ip> .*Bad password, connexion refused',
],
retry: 3,
retryperiod: '1h',
actions: banFor('48h'),
},
},
},
},
}