Daniel Black
fff996c8df
ENH: fix fail2ban-regex output to generate a man page with copyright notices
11 years ago
Yaroslav Halchenko
8c4ca29577
BF: correct comparison while comparing for "too many lines"
11 years ago
Daniel Black
05b4d2ce5b
BF: -D to deconflict with datedetector
11 years ago
Daniel Black
8109467459
BF: use string replace rather than re.sub
11 years ago
Daniel Black
4b5ecbccd1
ENH: debuggex URLs with fail2ban-regex
11 years ago
Steven Hiscocks
879c1a32f7
ENH: fail2ban-regex now uses iteraable for log file
...
Previosuly, the whole file was read in first
12 years ago
Steven Hiscocks
af46cd0e4f
ENH: fail2ban-regex now sorts date templates, similar to actual filters
...
Sort occurs every 10 lines, as to not overly effect performance
12 years ago
Steven Hiscocks
c2bdfefb62
DOC: Comment to fail2ban-regex - flagging lines matched multiple regexs
12 years ago
Steven Hiscocks
1a2b6442a0
ENH+BF+TST: Filter now returns reference to failregex and ignoreregex
...
This avoids duplication of code across fail2ban-regex and samples test
cases. This also now more neatly resolves the issue of double counting
date templates matches in fail2ban-regex.
In addition, the samples test cases now also print a warning message
that not all regexs have samples for them, with future plan to change
this to an assertion.
12 years ago
Yaroslav Halchenko
5bd186b854
ENH(minor): fail2ban-regex comment line doesn't have to have a space after leading #
12 years ago
Steven Hiscocks
2c8747cc76
BF: fail2ban-regex date detector template hits count now correct
...
closes #295
12 years ago
Steven Hiscocks
ec0680d73a
BF: fail2ban-regex when using ignoreregex file with empty regex
12 years ago
Yaroslav Halchenko
e91419d361
ENH: fail2ban-regex -- add specification of loglevels to enable
12 years ago
Yaroslav Halchenko
ffe381d91c
RF: reworked -regex cmdline tool to use optparse, some unification and enhancement of outputs
12 years ago
Yaroslav Halchenko
ffbbb9f8a3
ENH: deleted trailing spaces in fail2ban- cmdline tools
...
Now it was already a mix, and Cyril is not working on this code any
longer so no need to maintain this convention.
12 years ago
Yaroslav Halchenko
d561a4c2bb
BF: do not rely on scripts being under /usr -- might differ eg on Fedora -- rely on import of common.version (Closes gh-112)
...
This is also not ideal, since if there happens to be some systemwide common.version -- we are doomed
but otherwise, we cannot keep extending comparison check to /bin, /sbin whatelse
12 years ago
Yaroslav Halchenko
05af52e833
ENH: fail2ban-regex -- __str__ for RegexStat + modeline
12 years ago
Yaroslav Halchenko
03b31398aa
ENH: BF (forgotten import) for prev commit + removed duplicate Author, adjusted __ fields for that in fail2ban-* scripts
12 years ago
Yaroslav Halchenko
9e7a3b7a04
ENH: until we make it proper module -- adjust sys.path only if system-wide run
12 years ago
Yaroslav Halchenko
6b7544a63a
BF: removed sneaked a commented out sys.path.insert
13 years ago
Yaroslav Halchenko
b33ae8c194
Ask users to report bugs to github's issues
13 years ago
Yaroslav Halchenko
617094fad5
BF: fail2ban-regex -- adding forgotten char for -v
13 years ago
Yaroslav Halchenko
5891d2d218
ENH: fail2ban-regex -- quieter by default and added --verbose mode
...
now # of hits groupped into regexp listings since it makes little to no sense
to have it separate
13 years ago
Yaroslav Halchenko
d2ffee0b2d
ENH: minor, just pythonized some parts of fail2ban-regex summary
13 years ago
Leonardo Chiquitto
a7d47e8b36
Update Free Software Foundation's address
...
The address has changed from "59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA" to "51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA" some time ago.
13 years ago
Cyril Jaquier
402cdeab5e
- Updated e-mail
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@672 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
27b3ce2adc
- Updated copyright.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@670 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
174ce7027a
- Fixed fail2ban-regex. It support "includes" in configuration files.
...
- Modified "includes" to be more generic. We will probably support URL in the future.
- Small refactoring.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@656 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
ce6b8c959e
- Removed Python 2.4. Minimum required version is now Python 2.3.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@635 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
66063d2731
- Added "full line failregex" patch. Thanks to Yaroslav Halchenko. It will be possible to create stronger failregex against log injection
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@621 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
ada2d7234e
- Added "ignoreregex" support to fail2ban-regex
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@596 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
55009342ef
- Added more details in output
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@530 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
7bcfd2ace9
- Added file support to fail2ban-regex. Benchmark feature has been removed
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@523 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
ab3d2d1b9a
- Now Fail2ban goes in /usr/share/fail2ban instead of /usr/lib/fail2ban. This is more compliant with FHS. Thanks to Axel Thimm and Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@511 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
cd012dda85
- Added svn:keywords
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@504 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
0f31cc0feb
- Added support for several "failregex" and "ignoreregex". This should simplify the configuration files.
...
- Configuration files are backward-compatible but need to be updated in order to take advantage of this feature.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@503 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
58acd9fb9f
- Moved version.py and protocol.py to common/
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@467 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
519eddef21
- Added better debugging output
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@441 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
040e47be5a
- Added version and usage output
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@397 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
9f5f6812f5
- Added a getTemplates() method because self.__templates can not be accessed directly anymore
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@371 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
126807dea8
- Made private fields prefixed with "__"
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@368 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
4eb611dd46
- Added date template hits summary
...
- Desactivated garbage collector while benchmarking
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@345 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
6b1d9b6180
- Added benchmark
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@330 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
a998e54bb9
- Added "fail2ban-regex". This is a tool to help finding "failregex"
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@329 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago