Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 704394

Summary: net-analyzer/fail2ban fails to start with default configuration
Product: Gentoo Linux Reporter: Tiago Marques <bugs>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tiago Marques 2019-12-31 17:31:02 UTC
Just installed the package and found a few bugs upon starting the service:

- jail.conf file was loading "paths-debian.conf" instead of "paths-common.conf", so it wouldn't even start.
- Needs sqlite3 flag to enable database support and edit fail2ban.conf to match. If not set, needs to default to ":memory:" or "None",
- Tries to use "/var/log/auth.log" instead of "/var/log/messages", the default with syslog-ng. This probably needs some configuration or just print a warning with some pointers.




Reproducible: Always

Steps to Reproduce:
1.Install fail2ban
2.Start the service
3.
Actual Results:  
Service fails to start due to various configuration errors on Gentoo systems.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-31 18:13:57 UTC
(In reply to Tiago Marques from comment #0)
> Just installed the package and found a few bugs upon starting the service:
> 
> - jail.conf file was loading "paths-debian.conf" instead of
> "paths-common.conf", so it wouldn't even start.

Works for me. You should be more specific. I am changing the Summary accordingly.

> - Needs sqlite3 flag to enable database support and edit fail2ban.conf to
> match. If not set, needs to default to ":memory:" or "None",

No it does not. If you want that, then that's your local system administrator's choice, not something to be magically set for everyone else.

> - Tries to use "/var/log/auth.log" instead of "/var/log/messages", the
> default with syslog-ng. This probably needs some configuration or just print
> a warning with some pointers.

Again, a configuration problem you should resolve locally. Not all sysloggers use /var/log/messages.