Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BR]: fail2ban complains about missing key in the default config file #3714

Closed
2 of 3 tasks
merlinz01 opened this issue Apr 1, 2024 · 1 comment
Closed
2 of 3 tasks

Comments

@merlinz01
Copy link

Environment:

  • Fail2Ban version : 1.0.2-2
  • OS, including release name/version : Debian 12
  • Fail2Ban installed via OS/distribution mechanisms
  • You have not applied any additional foreign patches to the codebase
  • Some customizations were done to the configuration

The issue:

The default config file has allowipv6 commented out, and fail2ban complains about it.

Steps to reproduce

Install from Debian repository and check systemd logs.

Expected behavior

No warnings

Observed behavior

An error is logged because allowipv6 is not defined in the config file.
WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'

Configuration, dump and another helpful excerpts

Default config from deb install

Relevant parts of journalctl -u fail2ban:

fail2ban-server[577104]: 2024-04-01 17:02:35,520 fail2ban.configreader   [577104]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'

The simple fix:

Uncomment line 62 in the default fail2ban.conf.

@sebres
Copy link
Contributor

sebres commented Apr 2, 2024

Dup of #3420.
Closed in 432e7e1.

@sebres sebres closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants