Yaroslav Halchenko
b3614d4ea2
ENH: FilterPoll -- adjusted some msgs + allowed to operate without jail (for testing)
13 years ago
Yaroslav Halchenko
9b360bb12d
ENH: minor, just trailing spaces/tabs + reformated a string
13 years ago
Yaroslav Halchenko
3989d24967
BF: usedns=no was not working at all
...
it was not adding any detected address, IP or not to the list of failed attempts
This commit also adds appropriate unittest
13 years ago
Chris Reffett
a018a26133
Fixed addBannedIP to add enough failures to trigger a ban, rather than
...
just one failure.
13 years ago
Yaroslav Halchenko
2245ff5b41
ENH: rudimentary __repr__ for Filter and Jail + moved usedns into set method
...
otherwise usedns is way too noisy, especially within fail2ban-regex
13 years ago
Yaroslav Halchenko
b257be4cd1
BF+ENH: added %m-%d-%Y pattern + do not add %Y for Feb 29 fix if already present in the pattern
...
although %m-%d-%Y is ambioius with %d-%m-%Y it comes after so it should not
be too dangerous (i.e. in upcoming days having smth like 02-01 should work as before matching
first one first) and proper fix to select between the two should follow some time
soon
13 years ago
Yaroslav Halchenko
ed16ecc50a
Enforce "ip" field returned as str, not unicode so that log message stays non-unicode
...
Should address #32
13 years ago
Lee Clemens
d73a71f5cf
ENH: Add usedns parameter for the jails
...
following commits were squashed from feature branch use_dns
commit 068c105eb5
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 22:19:04 2012 -0500
Prevent warning when IP is read from log
commit 635ed36a8c
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 22:17:08 2012 -0500
Removed logDebug
commit 24656d2812
Merge: 7957fbe
c429f5c
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 21:13:11 2012 -0500
Merge branch 'enh/use_dns' of github:leeclemens/fail2ban into enh/use_dns
Conflicts:
testcases/filtertestcase.py
commit 7957fbe821
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 21:09:58 2012 -0500
filtertestcase fixes from yarikoptic
commit 6ce9d04640
Author: Yaroslav Halchenko <debian@onerussian.com>
Date: Tue Jan 10 19:26:05 2012 -0500
RF: for consistency use_dns -> usedns
I guess it was might fault of inconsistency suggesting that name.
Other options/commands do not have _ in the names, so let it be
consistent with the rest for now
commit cfb2c75b49
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 19:18:41 2012 -0500
Updated DNSUtilsTests to test use_dns and added positive test to testTextToIp
commit f6186eff14
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 19:02:04 2012 -0500
Changed wording of 'DNS Reverse lookup used' message
commit 82c62d29dc
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 18:53:17 2012 -0500
Removed extraneous "n"
commit dc0ae21932
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 23:07:59 2012 -0500
ENH: use_dns - removed debugging statements
commit 594e25818c
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 22:53:39 2012 -0500
Added use_dns protocol to set and get per jail during runtime
commit 48ff80ffac
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 22:41:18 2012 -0500
Completed use_dns for initial startup - with debugging statements
commit 0bdab4c2d7
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 20:05:35 2012 -0500
ENH: Added use_dns option
commit 6d6b734ea5
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 20:01:34 2012 -0500
ENH: Added use_dns option
commit 11ad2b6125
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 19:17:30 2012 -0500
Added useDns flag to testcase
commit b48fa9b6af
Author: Lee Clemens <java@leeclemens.net>
Date: Sun Jan 8 15:13:27 2012 -0500
Added use_dns option in jail.conf
commit c429f5c91a
Merge: 4b18afb
0021906
Author: leeclemens <java@leeclemens.net>
Date: Tue Jan 10 16:32:22 2012 -0800
Merge pull request #3 from yarikoptic/enh/use_dns
let's be consistent ;-)
commit 0021906358
Author: Yaroslav Halchenko <debian@onerussian.com>
Date: Tue Jan 10 19:26:05 2012 -0500
RF: for consistency use_dns -> usedns
I guess it was might fault of inconsistency suggesting that name.
Other options/commands do not have _ in the names, so let it be
consistent with the rest for now
commit 4b18afb28a
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 19:18:41 2012 -0500
Updated DNSUtilsTests to test use_dns and added positive test to testTextToIp
commit 4fae37e46f
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 19:02:04 2012 -0500
Changed wording of 'DNS Reverse lookup used' message
commit e94806ce48
Author: Lee Clemens <java@leeclemens.net>
Date: Tue Jan 10 18:53:17 2012 -0500
Removed extraneous "n"
commit 4d30c52907
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 23:07:59 2012 -0500
ENH: use_dns - removed debugging statements
commit 76696d452a
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 22:53:39 2012 -0500
Added use_dns protocol to set and get per jail during runtime
commit 0631618087
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 22:41:18 2012 -0500
Completed use_dns for initial startup - with debugging statements
commit d23d495547
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 20:05:35 2012 -0500
ENH: Added use_dns option
commit 9538553bc5
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 20:01:34 2012 -0500
ENH: Added use_dns option
commit ae1e857e53
Author: Lee Clemens <java@leeclemens.net>
Date: Mon Jan 9 19:17:30 2012 -0500
Added useDns flag to testcase
commit ace43eb941
Author: Lee Clemens <java@leeclemens.net>
Date: Sun Jan 8 15:13:27 2012 -0500
Added use_dns option in jail.conf
13 years ago
Lee Clemens
e7dce7cc5a
BF: Added logging above ValueError, since only INVALID COMMAND is printed by calling method
13 years ago
Lee Clemens
3282f86651
capitalized Jail
13 years ago
Lee Clemens
642d9afb9a
Reformated printing of jail's name to be consistent with init's info messages
13 years ago
Lee Clemens
a1898b1840
Fixed and added error message if no backends initialized. INVALID COMMAND is printed when RuntimeError is raised, so we don't get to see the error's message
13 years ago
Yaroslav Halchenko
29c8e43354
BF: must be named _initPolling to be consistent with the 'polling' value
13 years ago
Lee Clemens
b7adb29088
Spelling, Changed docstring to comment
13 years ago
Yaroslav Halchenko
f90d53fc26
RF: traverse known backends in a loop
...
should now be
- easier to comprehend
- more scalable happens new backends come
- more informative with all the info and debug messages
NB not sure why __setBackend was instance's attribute, now there is a
method _setBackend
13 years ago
Yaroslav Halchenko
7413817f9a
RF: for pyinotify's filter -- adjusted authors/copyright and avoided super() for old-style class
13 years ago
Lee Clemens
02894623cf
Moved dict() above debug statement
13 years ago
Lee Clemens
aa4514bffa
Removed PYINOTIFY prefix to debug statement for Callback for Event
13 years ago
Lee Clemens
5c4ec6e7fb
Renamed Notifier and Watch Manager to start with __ prefix
13 years ago
Lee Clemens
4c13063498
Added addLogPath and delLogPath functionality (adds/removes paths from the WatchManager)
13 years ago
Lee Clemens
b0830385ed
Update Free Software Foundation's address
13 years ago
Lee Clemens
8a2e26403a
Merge remote-tracking branch 'upstream/master'
13 years ago
Lee Clemens
adca2b87e8
Changed Copyright information
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
Lee Clemens
4bf4d4ddb5
Removed wd assignment and irrelevant comment
13 years ago
Lee Clemens
d1050350db
Added pyinotify backend
13 years ago
Lee Clemens
e442503133
Added pyinotify backend
13 years ago
Yaroslav Halchenko
3e1983a8ec
Revert "ENH: server.py -- addLogPath with tail=True"
...
This reverts commit 927a01a076
.
Let's not change this behavior for now from previous release since it
would break finding recent hits upon restart.
13 years ago
Yaroslav Halchenko
db39c7438a
ENH: added custom timeformat with '.' as separator. Close gh-1
...
Probably evening effect -- can't understand why reported days of the weeks
differ and it was 1 originally at all. Left as TODO
13 years ago
Yaroslav Halchenko
16322440ed
BF: stop all communications before stopping the jails (Close gh-7)
...
It is necessary because otherwise if jails actions try to communicate
to the server we are getting a lockup since threads are locked
13 years ago
Yaroslav Halchenko
fbce415622
ENH: added logging while stopping the jails
13 years ago
Yaroslav Halchenko
eda7efbca3
ENH: fix of syntax for compatibility with Python 2.4
13 years ago
Yaroslav Halchenko
bd658fc74b
ENH: stay compatible with python < 2.5 (use md5 if hashlib is N/A)
13 years ago
Markos Chandras
492d8e5ff8
BF: use hashlib instead of deprecated md5
...
Bugfix revision. Fixes bug 260337,283629,301139,315073,343955. Thanks to Robert Trace <bugzilla-gentoo@farcaster.org>, Harley Peters <harley@thepetersclan.com> for the patches.
Picked up from
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/files/fail2ban-0.8.4-hashlib.patch\?view\=markup
13 years ago
Yaroslav Halchenko
fd4c151353
BF: be able to detect time for VNC recording only 2 letters of year ( closes : #537610 )
13 years ago
Yaroslav Halchenko
927a01a076
ENH: server.py -- addLogPath with tail=True
...
it was present in source distribution of 0.8.4 but seems to lack from VCS
13 years ago
Yaroslav Halchenko
a33135c24d
ENH: set/getFile for ticket.py -- found in source distribution of 0.8.4
...
it was present in source distribution but seems to lack from VCS
13 years ago
Yaroslav Halchenko
a9be451079
ENH: removed expansion for few Date and Revision SVN keywords
...
For consistency of appearance... eventually we might just remove them
altogether
13 years ago
Yaroslav Halchenko
9d45e35642
BF: return declaration of TABLE back (thanks to michaelberg79)
13 years ago
Łukasz
5f235427aa
Update server/datetemplate.py
13 years ago
Tom Hendrikx
22b700766c
format output of matches data.
13 years ago
Yaroslav Halchenko
de8786dd1d
ENH: introduced usa of Ticket.__matches throughout
13 years ago
Yaroslav Halchenko
b52d420575
ENH: added 'matches' to the Ticket(s) and deprecated "custom" constructors for derived *Tickets
13 years ago
Yaroslav Halchenko
ed6daa70bf
ENH: modelines for emacs and vim to assure consistent indentation scheme (tabs)
13 years ago
Yaroslav Halchenko
19c9ac4fb5
ENH: failmanager -- additional debug message about # of known failures
13 years ago
Yaroslav Halchenko
1674b7b4f2
ENH: rudimentary __str__ for the ticket
13 years ago
Yaroslav Halchenko
6641b1ce8b
ENH: few debug messages and use MyTime.localtime instead of straight time.time
13 years ago
Yaroslav Halchenko
b6d50c1dea
ENH: Added localtime() to MyTime
13 years ago
Yaroslav Halchenko
3a58d0e6e4
BF: Lock server's executeCmd to prevent racing among iptables calls ( Closes : #554162 )
...
Many kudos go to Michael Saavedra for the solution and the patch.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@784 a942ae1a-1317-0410-a47c-b1dcaea8d605
13 years ago
Yaroslav Halchenko
12304f7a3e
Tai64N stores time in GMT, we need to convert to local time before returning
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@764 a942ae1a-1317-0410-a47c-b1dcaea8d605
14 years ago
Yaroslav Halchenko
2a38820ed6
debug entry for lines ignored due to falling below findtime (v2)
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@763 a942ae1a-1317-0410-a47c-b1dcaea8d605
14 years ago
Arturo 'Buanzo' Busleiman
7aad6685af
added time module. bug reported in buanzo's blog at http://blogs.buanzo.com.ar/2009/04/fail2ban-patch-ban-ip-address-manually.html
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@758 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Cyril Jaquier
8007a02539
- Patch to make log file descriptors cloexec to stop leaking file descriptors on
...
fork/exec. Thanks to Jonathan Underwood. https://bugzilla.redhat.com/show_bug.cgi?id=230191#c24
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@757 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Cyril Jaquier
a3d6ae19f6
- Check the inode number for rotation in addition to checking the first line of the file. Thanks to Jonathan Kamens.
...
- Red Hat Bugzilla - Bug 503852
- SF.net Bug #2800279 .
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@752 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
3e3a68f9de
added traceback to asyncserver.py's import.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@750 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
5945ca09ae
moved logging shutdown out of quit(), into end of start() in server.py
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@748 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
a1a106a27e
added "Ban IP" command to fail2ban branch 0.8
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@745 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Cyril Jaquier
b88956e898
- Added helper module in common.
...
- Moved formatExceptionInfo by Buanzo to common/helpers.py.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@740 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
81e2fe8306
added 'unexpected communication error' fix to ChangeLog. Added formatExceptionInfo to server/asyncserver.py
...
We should move that function to a helpers module.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@739 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
b2f0bfe751
added missing import sys to asyncserver.py
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@738 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
08a36ca657
more readable code for python version comparison
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@737 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
fd898c9eac
added python version detection to asyncore.loop(use_poll=True|False)
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@736 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Arturo 'Buanzo' Busleiman
e09fad559a
Fix for python 2.6 / 3.0 incompatibility
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@735 a942ae1a-1317-0410-a47c-b1dcaea8d605
15 years ago
Cyril Jaquier
0cf733e878
- Fixed maxretry/findtime rate. Many thanks to Christos Psonis. Tracker #2019714 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@731 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
3155bc8f03
- Use timetuple instead of utctimetuple for ISO 8601. Maybe not a 100% correct fix but seems to work. Tracker #2500276 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@729 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
abd061bad8
- Changed <HOST> template to be more restrictive. Debian bug #514163 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@728 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
6b9896c332
- Added CPanel date format. Thanks to David Collins. Tracker #1967610 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@722 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
024a77a679
- Removed print.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@720 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
870f9d9ea7
- Removed begin-line anchor for "standard" timestamp. Fixed Debian bug #500824 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@719 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
f6d44e6bc8
- Added new time format. No idea from where it comes...
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@714 a942ae1a-1317-0410-a47c-b1dcaea8d605
16 years ago
Cyril Jaquier
6ee4843d11
- Try to match the regex even if the line does not contain a valid date/time. Described in Debian #491253 . Thanks to Yaroslav Halchenko.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@712 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
9e2a4a935a
- Added date template for Day-Month-Year Hour:Minute:Second.
...
- Values as string are shown in capital in the description.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@710 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
e064ebba45
- Added date pattern for Hour:Minute:Second. Thanks to Andreas Itzchak Rehberg.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@709 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
b26f9ca97a
- Use current day and month instead of Jan 1st if both are not available in the log. Thanks to Andreas Itzchak Rehberg.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@708 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
cc62cd7076
- Use poll instead of select in asyncore.loop. This should solve the "Unknown error 514". Thanks to Michael Geiger and Klaus Lehmann.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@700 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
8da2fe515a
- Added and changed some logging level and messages.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@696 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
298adc4d43
- Added ISO 8601 date/time format.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@692 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
46dab37bfe
- Added "Day/Month/Year Hour:Minute:Second" date template. Thanks to Dennis Winter.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@685 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
56357d18df
- Changed some log level.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@682 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
b757c08f40
- Fixed "fail2ban-client get <jail> logpath". Bug #1916986 .
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@681 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
b174a2e858
- Fixed PID file while started in daemon mode. Thanks to Christian Jobic who submitted a similar patch.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@680 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
d645a8fe47
- Process failtickets as long as failmanager is not empty.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@676 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
799f5977c5
- Fixed "Feb 29" bug. Thanks to James Andrewartha who pointed this out. Thanks to Yaroslav Halchenko for the fix.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@652 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
bcdb428e1b
- Added missing argument.
...
- Fixed use of FileContainer in filterpoll.py.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@649 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
9163e5b61b
- Removed debug message.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@648 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
ae26b901ab
- Create a PID file in /var/run/fail2ban/. Thanks to Julien Perez.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@647 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
7091cb39e4
- Small refactoring.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@645 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
695b6b1fe5
- New log rotation detection algorithm.
...
- Print monitored files in status.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@644 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
2703c8ebb9
- Show version at startup. Thanks to Klaus Lehmann.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@643 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
7db7967ab1
- Added string and regex to log message.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@642 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
65dcbed591
- Split Filter into Filter and FileFilter.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@641 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
9199e02853
- Removed unused regular expression.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@640 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
adcc2ef386
- Removed user-defined time regex/pattern.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@639 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
eae650fdfc
- Refactoring. Merged failticket and banticket into ticket.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@638 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
bad9821b14
- Increment counter internally.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@637 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
379aa2f855
- Display a message if we could not bind the socket.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@636 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
c07a7a6e7a
- Refactoring. Reduced number of files.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@633 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
8dae8e4d0e
- Shutdown logging at shutdown.
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@630 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
5bd32566c3
- Moved socket to /var/run/fail2ban.
...
- Rewrote the communication server.
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@628 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
5176ce820e
- Fixed "ignore IPs". Only the first value was taken into account. Thanks to Adrien Clerc
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@627 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
c7b099f785
- Removed date from logging message when using SYSLOG. Thanks to Iain Lea
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@626 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
9eda9e93c7
- Fixed timezone bug with epoch date template. Thanks to Michael Hanselmann
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@618 a942ae1a-1317-0410-a47c-b1dcaea8d605
17 years ago
Cyril Jaquier
040822f19f
- Added "named" date format to date detector. Thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@607 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
7c33b443ac
- Removed textToDns() which is not required anymore. Thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@605 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 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
6d129491f7
- Expand <HOST> in ignoreregex. Thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@589 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
6145a88fe8
- Added date format for asctime without year
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@568 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
090518ddaf
- Fixed "reload" bug. Many many thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@567 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
fddce1cbdc
- Clean up resources. Does not seem to free resources correctly. Gamin bug???
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@564 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
c768980784
- Close opened handlers. Thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@563 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
bde70ebc00
- Added more comments
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@556 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
9cb7831758
- Catched socket.error raised by socket.accept on some platform
...
- Modified some socket settings
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@555 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
6426cf75aa
- Moved every locking statements in a try..finally block
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@553 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
35a26237eb
- Fixed asctime pattern in datedetector.py
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@546 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
04e2b6730c
- Removed IP list in status for failmanager
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@537 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
126d57ef6c
- Returns IP address instead of Ticket
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@536 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
6d6acb075a
- Added IP list in "status <JAIL>". Thanks to Eric Gerbier
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@535 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
5370b6740d
- Removed unneeded local variable
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@521 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
b8f0ce7155
- Do not accept empty regular expression
...
- Do not send an empty string if the option is not defined
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@505 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
071474089b
- Improved regular expression checking
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@501 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
812a47cc4a
- Added new date pattern (Exim4). Thanks to mEDI
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@500 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
5dd2c5162e
- Reset logging handlers only if new handler succeeds
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@493 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
8ca367d609
- Use /dev/log for SYSLOG output. Thanks to Joerg Sommrey
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@488 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
f5d4cb6be2
- Added alias "<HOST>" for failregex
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@471 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
911b2b15fc
- Merged "maxtime" with "findtime"
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@470 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
b3143c723d
- Fixed a bug in user defined regex/pattern date template
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@460 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
90359ba523
- Added option "ignoreregex" in filter scripts and jail.conf. Feature Request #1283304
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@458 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
d6e49f8480
- Fixed rebanned bug
...
- Clarified available tags
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@455 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
f8989581b4
- Replaced loop with list comprehension
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@454 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
32b33c8ae4
- Fixed refactoring bug
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@453 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
cdf5ae19db
- Improved synchronization
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@452 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
7659452ade
- Refactoring
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@451 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
d065d97888
- Use pickle instead of cPickle. Python 2.5 gives an exception with cPickle
...
- Use a binary format instead of ASCII
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@443 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
5baa08c86f
- Improved checking and logging output in findFailure
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@440 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
a49cc6bb08
- Added new date format (Apache). Thanks to Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@439 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
150a6abd0d
- Stop reading log file when jail is no more active
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@437 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
ae0ed204ee
- Added signal handling. There is a bug with join() and signal handling in Python.
...
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1167930&group_id=5470
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@436 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
4536ddbcc1
- Fixed indentation with space instead of tabs
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@434 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
71b9fe8fe8
- Fixed some Pylint warnings/errors
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@433 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
4fd934aa83
- subprocess still hangs :'(
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@432 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
a522d9b6d7
- Re-activated subprocess module
...
- A return code different than 0 is considered as an error
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@428 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
23127d951c
- Added 'u' in front of the UTF-8 strings
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@424 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
2f37284863
- Removed useless code
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@423 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
3cd43b13ce
- Added simple date format
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@422 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago
Cyril Jaquier
af41290fc6
- Added the class MyTime. Replaces call to time.time() and time.gmtime(). A fixed time value can be set for testing purpose
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@418 a942ae1a-1317-0410-a47c-b1dcaea8d605
18 years ago