Cameron Norman
73cb3e3eec
Added more specific help message to fail2ban-client with -f option
11 years ago
Cameron Norman
7818b0cb2a
Added f and b to cmdOpts.
...
f = start server in foreground; b = start server in background (default).
11 years ago
Cameron Norman
9c2a0cb403
Added foreground and background options to fail2ban-client
11 years ago
Steven Hiscocks
6a740f684a
ENH: Move traceback formatter to from tests.utils to helpers
...
Now allows for tests to be removed from package if desired
11 years ago
Hank Leininger
2d42b46a7c
Add a --print-all-matched option.
...
The default behavior, to not print any matched lines, is unchanged.
11 years ago
Steven Hiscocks
e193e67718
BF: fail2ban-regex mix of tabs and spaces
11 years ago
Steven Hiscocks
5630c56c75
ENH: Change logging levels and make info more verbose
11 years ago
Daniel Black
cc1a9cc45d
BF: match up fail2ban-regex for datedetector/datetemplate changes
11 years ago
Daniel Black
97c7d391a4
BF: remove duplicate implemenation of reading datepatterns in fail2ban-regex
11 years ago
Daniel Black
95add8a1c5
BF: datepattern handling in fail2ban-regex
11 years ago
Daniel Black
f47ff95b8e
BF: datepattern for fail2ban-regex
11 years ago
Daniel Black
58a5983367
ENH: fix fail2ban-regex for filter arguement substition
11 years ago
Steven Hiscocks
c80297045e
ENH: Pass date time straight from systemd backend
...
Removes need to reparse the date time back from the ISO format
11 years ago
Steven Hiscocks
06a7b6534e
DOC: Correct use of tab to spaces in fail2ban-regex help message
11 years ago
Steven Hiscocks
d9afcc178a
MINOR: PEP-8 tweaks for multiline-matches change set
11 years ago
Steven Hiscocks
60d298d898
BF: fail2ban-regex erroneously reporting multiple regexs had matched
11 years ago
Steven Hiscocks
c886414e2e
ENH+BF: Capture multiline matched lines into fail ticket
...
Previously only the last line of the match was being saved, not all
lines involved in matching.
Log lines are now broken into 3 part tuple, with the line pre-datetime,
the datetime, and post-datetime. Allows reformation of full line, but
also use of the line without the datetime present.
Attempting to use the term "tupleLine(s)" where possible, to avoid
confusion with normal read lines.
May also wish to consider that regexs could be made to capture more
lines of interest if some form of unique reference is available. This
may allow more lines of interest to be captured, which may not be picked
up by the traditional "grep <ip>" approach i.e. ones which do not have
the ip address in.
This also simplified the fail2ban-regex statistics for missed lines.
Also resolved bug with missed lines time extracted for debuggex having
some lines present which were captured in a multiline regex.
Also resolved independent issue with ignored line check including the
datetime, which raised assertion error in the rare case the datetime
matched the ignore regex, and the rest of line only matched a failregex
11 years ago
Steven Hiscocks
e07df3f7d4
ENH: fail2ban-regex uses ISO8601 when using journal backend
...
Also fix setting of date pattern occurring too early, before filter
being created.
11 years ago
Steven Hiscocks
088e7f92aa
ENH: fail2ban-regex uses iterable for files and journal access
11 years ago
Steven Hiscocks
05fac65a50
BF: fail2ban-regex multiline regex matches no longer in missed lines
...
Closes #263
Closes #282
12 years ago
Steven Hiscocks
3dbe2c04ca
BF: fail2ban now don't print maxlines twice when using ignoreregex
...
Also read failregex first, as more natural place to get maxlines value
from.
12 years ago
Steven Hiscocks
88bee24edb
DOC: Neaten format for fail2ban-regex maxlines print
12 years ago
Steven Hiscocks
d081a71759
BF: fail2ban-regex on python3+
12 years ago
Steven Hiscocks
f87c53fa52
BF: fail2ban-regex adding duplicate lines with each regex
...
This is another fix on top of e73b3dd
to correctly resolve this issue
12 years ago
Steven Hiscocks
123ec3da13
BF: Incorrect import for 0.9 branch in fail2ban-regex
12 years ago
Steven Hiscocks
e73b3dd53e
BF: fail2ban-regex adding duplicate lines with each regex
...
This issue was caused by the fact that every "line" is processed for each
regex, meaning each line was duplicated for every regex. This caused
duplicate fail matches and the buffer filling too quickly and possibly
missing failures.
12 years ago
Steven Hiscocks
c08bd67f50
BF: fail2ban-regex systemd-journal field fix for __CURSOR
12 years ago
Steven Hiscocks
f7d328195f
NF: Add systemd journal backend
12 years ago
Steven Hiscocks
c98b01bd1d
BF: fail2ban-regex fix for maxlines init option reader
12 years ago
Steven Hiscocks
7371d2a271
ENH: Added datepattern option to fail2ban-regex
12 years ago
Yaroslav Halchenko
1fcb5efbd7
ENH: make fail2ban-regex aware of possible maxlines in the filter config file
12 years ago
Steven Hiscocks
12df12f282
BF: Change logging instance logSys `warn` method to `warning`
...
`warn` is long time depreciated method, which may be dropped in
python3.4 http://bugs.python.org/issue13235
12 years ago
Steven Hiscocks
9e684abad7
TST: Move test gathering to function is test utils
12 years ago
Steven Hiscocks
4cc3a81cc1
TST: Move test TZ changes to setUp and tearDown methods
12 years ago
Steven Hiscocks
1756f709da
DOC: Revert change to fail2ban-refex from 183cfa6
12 years ago
Steven Hiscocks
183cfa6e00
ENH: Default maxlines value in jail.conf, and verify value is int >0
12 years ago
Steven Hiscocks
0ea9904440
TST: revert change of log format for testcases in commit a3d82e2
12 years ago
Steven Hiscocks
a3d82e2ab9
ENH: fail2ban logging uses __name__ for logger names
12 years ago
Steven Hiscocks
a153653a27
ENH+TST: Move fail2ban-* scripts to bin/
12 years ago