Hi there,
On my Yunohost, I’ve installed the wordpress app 3 times to run 3 different websites. It created 3 different fail2ban jails, named wordpress, wordpress__2 and wordpress__3. They’re duplicates: they scan the same log file, they ban the same IP.
I think it would be better to create a unique jail, so to test if a jail already exists on installation. When removing the yunohost app, it should test if another worpress is still installed before removing the jail.
That way, the log file wouldn’t contain thrice the same IP. Also, I think it currently activate the recidive jail more easily because a IP is banned on 3 jails at the same time.
Hi there,
On my Yunohost, I’ve installed the wordpress app 3 times to run 3 different websites. It created 3 different fail2ban jails, named wordpress, wordpress__2 and wordpress__3. They’re duplicates: they scan the same log file, they ban the same IP.
I think it would be better to create a unique jail, so to test if a jail already exists on installation. When removing the yunohost app, it should test if another worpress is still installed before removing the jail.
That way, the log file wouldn’t contain thrice the same IP. Also, I think it currently activate the recidive jail more easily because a IP is banned on 3 jails at the same time.