Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601430 - net-analyzer/fail2ban - fail2ban-client: WARNING Wrong value for 'enabled' in 'sshd'. Using default one: 'False'
Summary: net-analyzer/fail2ban - fail2ban-client: WARNING Wrong value for 'enabled' in...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-02 10:21 UTC by Tony
Modified: 2016-12-05 21:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony 2016-12-02 10:21:09 UTC
net-analyzer/fail2ban ships with a default configuration file for SSH

/etc/fail2ban/jail.d/sshd.conf

file contents

[sshd]
enabled = true  # Note that it is by default disabled
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
maxretry = 5 # Override the default of 3

Problem is, fail2ban doesn't like inline comments in it's config files.
Upon starting fail2ban, the following error happens

Dec 02 09:50:10 tony-gentoo fail2ban-client[28442]: WARNING Wrong value for 'enabled' in 'sshd'. Using default one: 'False'

Removing the inline comments from the config file solves issue

Possibly alter the default shipped config file to not include inline comments?
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2016-12-05 21:01:27 UTC
"By default" in this context is meaningless. You are _required_ to configure fail2ban to begin with as it cannot magically tell where your syslog service dumps its files.

Complaining upstream is your only option here.