Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Refactor jails to service specific .conf and standardise filter naming#7

Merged
nomandera merged 17 commits intolinuxserver-labs:devfrom
nomandera:dev
May 15, 2020
Merged

Refactor jails to service specific .conf and standardise filter naming#7
nomandera merged 17 commits intolinuxserver-labs:devfrom
nomandera:dev

Conversation

@nomandera
Copy link
Copy Markdown
Collaborator

Prior to this commit all setup was static at point of install with some restrictions on what we can alter without user interaction.

This commit brings in a new scheme where:

  • jail.d/jail.conf
  • contains the DEFAULT section of the old jail.local
  • jail.d/*.conf
  • contain a series jail definitions that match the existing filter.d/*.conf naming for simplicity.

This means that new filter/jail pairs can be added without having to worry about jail.local.

Equally fixes upstream can be applied to any filter or jail since they are no longer user controlled.

The sample jail.local essentially only contains on/off switches and log paths now.

This scheme better matches how fail2ban is normally configured and will scale should we find ourselves adding more and more custom jails to cater for the ever growing ls.io container estate.

@nomandera nomandera merged commit f27a08b into linuxserver-labs:dev May 15, 2020
@nomandera nomandera deleted the dev branch May 15, 2020 14:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants