Skip to content

Do not create different fail2ban jails for multiple wordpress install #252

Description

@PetitMote

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions