Skip to content

Update fail2ban.local for "allowipv6" option #335

@NBPub

Description

@NBPub

Log Issue

          Got this on startup of an existing container:
swag  | 2023-01-21 10:26:34,008 fail2ban.configreader   [380]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'

Originally posted by @thespad in #315 (comment)

fail2ban

I am getting this on startup, and have seen it in recent logs from other issues. I looked through the changelog for fail2ban 1.02 and found this:

fail2ban.conf: new fail2ban configuration option allowipv6 (default auto), can be used to allow or disallow IPv6 interface in fail2ban immediately by start (e. g. if fail2ban starts before network interfaces), gh-2804

Possible Fix?

Add ipv6 option to fail2ban.local

allowipv6 = auto or allowipv6 = yes

This should suppress the warning at startup. It could also be something that's configured via environmental variable. I tried adding this to jail.local, but still got the warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions