sebres
c8e7c1f7f4
BF: prefer sys.argv[0] by retrieving of root resp. bin path: __file__ seems to be overwritten sometimes on some python versions (e.g. bug of 2.6 by running under cProfile, etc.)
8 years ago
sebres
f390a82b59
python 2.6 compatibility minor fix - no skip + BaseException.message seems to be deprecated
8 years ago
sebres
08af8de981
compatibility fix (virtualenv, running test cases in py3)
8 years ago
sebres
77f451c4a3
introduces new command "fail2ban-python", as automatically created symlink to python executable, where fail2ban currently installed (resp. its modules are located);
...
fixed pythonic filters and test scripts (running via "fail2ban-python" now);
fixed test case "testSetupInstallRoot" not for default python (also using direct call, out of virtualenv);
8 years ago
sebres
ad19c8401b
minor fix: modules are not intended to be executed directly (amend to #1426 )
8 years ago
Yaroslav Halchenko
9d70c49ea8
BF: install doc files only under Linuxes and other GNU systems ( Closes #1233 ) ( #1503 )
8 years ago
Yaroslav Halchenko
123f4ceaee
Changelog for postfix-sasl fix
8 years ago
maksyms
9ddbd642f7
Accept no space after "failed:" ( #1501 )
...
yoh: Squashed to ease cherry-picking into 0.9
* accept no space after "failed:"
fix issue #1497
* accept no space after "failed:"
* Update postfix-sasl
* Update postfix-sasl
* Update postfix-sasl
8 years ago
maksyms
04427adb95
Accept no space after "failed:" ( #1501 )
...
yoh: Squashed to ease cherry-picking into 0.9
* accept no space after "failed:"
fix issue #1497
* accept no space after "failed:"
* Update postfix-sasl
* Update postfix-sasl
* Update postfix-sasl
8 years ago
sebres
c52aaa8b78
ASSP failregex minor fixes
8 years ago
sebres
70658d7a19
Merge pull request #1494 from rhardy613/master (branch 'sebres:pr-1494')
8 years ago
rhardy613
89f8999fe5
Add changelog entry for ASSP filter changes
...
Add changelog entry for ASSP filter changes
8 years ago
rhardy613
8265e3f0f9
Fix comments
...
For some reasons the comment changes weren't pickup in the last commit.
This fixes it.
8 years ago
rhardy613
66fe5a77ce
Fix ASSP filter to work with both ASSP V1 and V2
...
ASSP V1 development stopped at the end of 2014 and it is now deprecated.
All users were urged to upgrade to ASSP V2 which is still actively
developed.
fail2ban 0.9.5 (and trunk) still have code which only understands ASSP
V1 logs.
This means the filter ignores brute force attacks against ASSP. This fix
adds V2 support.
8 years ago
rhardy613
890a3dcbb9
Fix ASSP filter to work with current release of ASSP
...
ASSP V1 development stopped at the end of 2014 and it is now deprecated.
All users were urged to upgrade to ASSP V2 which is still actively
developed. For some reason fail2ban 0.9.5 (and trunk) still have code
which only understands ASSP V1 logs. This means the filter ignores brute
force attacks against ASSP.
Now updated with anchored patterns tested against 6 months of log data.
8 years ago
Yaroslav Halchenko
c0994b0c6c
DOC: minor typo (thanks John Bernard) Closes #1496
8 years ago
sebres
eb6e3c52ae
ChangeLog entries for the last fix (cherry pick from 0.10)
8 years ago
sebres
f5b7ffeb4b
DOC: Reformatted ChangeLog into legit Markdown (after merge of master to 0.10)
8 years ago
sebres
0eea362aa0
Merge branch 'master' into 0.10
8 years ago
sebres
0083036b5f
Merge branch '0.9/gh-1492'
8 years ago
sebres
8b1225f177
several amend fixes after cherry pick from 10th branch
8 years ago
sebres
3e330604c7
several test cases rewritten using new assertIn, assertNotIn (better as own from unittest, because support generators beautifying, etc.)
...
+ new forward compatibility method assertRaisesRegexp;
+ methods assertIn, assertNotIn, assertRaisesRegexp are test covered now;
+ easy-fix for distributions compatible test cases (e.g. fedora default backend is 'systemd'), (closes gh-1353, closes gh-1490)
cherry picked from 9d56079756
(0.10 branch)
8 years ago
rhardy613
f73746d846
Fix ASSP filter to work with current release of ASSP
...
ASSP V1 development stopped at the end of 2014 and it is now deprecated.
All users were urged to upgrade to ASSP V2 which is still actively
developed. For some reason fail2ban 0.9.5 (and trunk) still have code
which only understands ASSP V1 logs. This means the filter ignores brute
force attacks against ASSP.
8 years ago
Yaroslav Halchenko
1fbb2c4c97
Merge pull request #1484 from yarikoptic/enh-pr-doc
...
DOC: added a note about choose correct branch for PR
8 years ago
Yaroslav Halchenko
1abb939233
Merge pull request #1492 from sebres/0.10-new-assert-meth
...
several test cases rewritten using new assertIn, assertNotIn
8 years ago
sebres
9d56079756
several test cases rewritten using new assertIn, assertNotIn (better as own from unittest, because support generators beautifying, etc.)
...
+ new forward compatibility method assertRaisesRegexp;
+ methods assertIn, assertNotIn, assertRaisesRegexp are test covered now;
+ easy-fix for distributions compatible test cases (e.g. fedora default backend is 'systemd'), (closes gh-1353, closes gh-1490)
cherry pick into 0.9 branch
8 years ago
Yaroslav Halchenko
d9f039df03
Merge branch 'master' of git://github.com/fail2ban/fail2ban
...
* 'master' of git://github.com/fail2ban/fail2ban:
BF: do not rely on long relative path to upstairs config - symlink dereferenced copied during install (#1485 )
8 years ago
Yaroslav Halchenko
cee09e29ec
BF: do not rely on long relative path to upstairs config - symlink dereferenced copied during install ( #1485 )
...
* BF: do not rely on long relative path to upstairs config - symlink common.conf
* Added missing files to MANIFEST
8 years ago
Yaroslav Halchenko
dca5ff44c2
Merge branch 'bf-common-zzz'
...
* bf-common-zzz:
BF: do not rely on long relative path to upstairs config - symlink common.conf
8 years ago
Yaroslav Halchenko
79616b76bf
Added missing files to MANIFEST
8 years ago
Yaroslav Halchenko
687ea8d333
BF: do not rely on long relative path to upstairs config - symlink common.conf
8 years ago
Yaroslav Halchenko
5714ac201b
DOC: preparations for 0.9.5 release
8 years ago
Yaroslav Halchenko
0f88e8a658
Added missing files to MANIFEST
8 years ago
Yaroslav Halchenko
72c4743666
Merge pull request #1481 from yarikoptic/doc-changelog
...
Doc changelog - reformatted for markdown and a bit less indentation
8 years ago
Yaroslav Halchenko
21056c995d
Merge remote-tracking branch 'origin/master' into doc-changelog
...
* origin/master:
another variant of regex
add trailing anchor to failregex
add PR id to ChangeLog
improved failregex according to @sebres recomendations
* add `__prefix_line` to regex * fix time in log file
add info to log file
added sample log lines for slapd
adding openldap slapd filter
8 years ago
Yaroslav Halchenko
c15e968c1f
DOC: added a note about choose correct branch for PR
8 years ago
Yaroslav Halchenko
5797ea0ae2
Let's work toward a2 release
8 years ago
Yaroslav Halchenko
28a0605f69
Merge pull request #1478 from gips0n/master
...
adding openldap slapd filter
8 years ago
sebres
9b03a6d42e
0.10 pre-release: MANIFEST RELEASE and man pages updates
8 years ago
sebres
41e3f2e5ed
explicit flush stdout/stderr before exit, because of possible buffered output in python (echo or grep `fail2ban-client --version` can sometimes returns nothing)
8 years ago
Andrii Melnyk
7433b353ee
another variant of regex
8 years ago
Andrii Melnyk
7c5828dd2a
add trailing anchor to failregex
8 years ago
sebres
683f8fc56c
Merge branch 'master' into 0.10
8 years ago
Yaroslav Halchenko
bf3188c290
Merge pull request #1413 from sebres/f2b-perfom-prepare-716-cs-0.10
...
0.10-cs: client-server rewritten as modules / start in foreground / test coverage for cs
8 years ago
sebres
f0b2cd2e39
remove no more necessary PRODUCTION from fail2banclient.py
8 years ago
sebres
53da35ea49
resolves Christmas-tree in logging (replaced with duplex space indentation)
8 years ago
sebres
ad393fcfbb
outsource assert..isStarted from setup into separate test case
8 years ago
Yaroslav Halchenko
dfcf6f1963
BF+TST: isStarted was not checking __asyncServer for exist before checking it
8 years ago
Yaroslav Halchenko
52cd8a9a96
RF: _rebindSignal helper to centralize assignment of new signal handlers + minor PEP8ing
8 years ago
sebres
0dc3db1f43
test of `_kill_srv` added, don't kill server if foreground;
...
pid_exists already available in Utils;
small bug and stability fixing;
8 years ago