https://bugs.contribs.org/show_bug.cgi?id=10638
Bug ID: 10638
Summary: IgnoreIP entry created with trailing slash stopping
f2b from working
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: x86_64
OS: ---
Status: CONFIRMED
Severity: critical
Priority: P3
Component: smeserver-fail2ban
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
When adding entries to the f2b IgnoreIP list I usually just enter the IP on its
own without any CIDR notation, occasionally with CIDR but not often.
Entries on the IgnoreIP line in the db are syntactically correct (based on wiki
info), for example: IgnoreIP=192.168.106.0,103.100.28.96
Once the ip's are added & signal-event fail2ban-conf executed I get this error
over & over in the fail2ban daemon log:
Error in FilterPyinotify callback: invalid literal for long() with base 10:
.. f2b is not working at this point.
Checking the IgnoreIP entry in the jail.conf file I find that the IP's I've
entered to ignore are now shown as xx.xx.xx.xx/ - note the trailing slash. It
seemed like the config command can't deal with the lack of CIDR data & creates
a spurious entry on the IgnoreIP line in jail.conf eventhough the data in the
db is correct.
Strangely I re-entered the IgnoreIP addresses in full CIDR mode & reconfigured
& it still created bad entries.
If I hand edit the jail.conf file to create valid entries (by removing the
trailing slash or using full CIDR) then after just a restart, not reconfig,
everything works as expected.
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/