Commit Graph

2261 Commits (93f30fe4f60396aa3936584f5c358a041684ee9d)

Author SHA1 Message Date
Cyril Jaquier bf3cd1d56d - (Re)added permanent banning (banTime < 0)
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@387 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 20:46:21 +00:00
Cyril Jaquier 26e5690a4b - Beautified "ping" response
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@386 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 20:45:23 +00:00
Cyril Jaquier 0616135350 - Removed unneeded import
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@385 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 20:44:47 +00:00
Cyril Jaquier b701e033c1 - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@384 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 17:06:00 +00:00
Cyril Jaquier 91b1053c01 - Fixed wrong arg
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@383 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 17:05:38 +00:00
Cyril Jaquier 4502c0f6ba - Organized imports (pylint)
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@382 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-25 17:03:48 +00:00
Cyril Jaquier 66526b550f - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@381 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 22:41:21 +00:00
Cyril Jaquier d30cfd2095 - subprocess.call deadlocks when execute action with multi-jails
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@380 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 22:38:21 +00:00
Cyril Jaquier b5abd7f2f2 - Use cPickle instead of pickle. cPickle can be up to 1000 times faster
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@379 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 21:25:18 +00:00
Cyril Jaquier bb6c14bfea - Use subprocess.call instead of os.system
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@378 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 21:20:29 +00:00
Cyril Jaquier 2c737f77f1 - Oups... Forgot 2 debug output. Removed
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@377 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 20:59:28 +00:00
Cyril Jaquier 6ab1d13234 - Fixed log rotation bug
- Refactoring

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@376 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-21 20:55:45 +00:00
Cyril Jaquier d61690fd9e - Added encoding tag (utf8)
- Added some translations

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@375 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-20 22:41:10 +00:00
Cyril Jaquier 3ca397922d - Catch IOError when file can not be read
- Do not convert line to latin-1 but to utf8

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@374 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-20 22:39:16 +00:00
Cyril Jaquier f12d0fab61 - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@373 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-19 22:25:07 +00:00
Cyril Jaquier f3df224ec4 - First attempt at solving bug #1457620
- Always use the 'C' locale and try to convert date representation like month names to this locale

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@372 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-19 22:23:41 +00:00
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
2006-09-19 22:21:20 +00:00
Cyril Jaquier 97a1e5b79f - Removed unneeded import
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@370 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-19 22:20:21 +00:00
Cyril Jaquier 4b80546f10 - Fixed bugs introduced by refactoring
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@369 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-19 21:22:27 +00:00
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
2006-09-19 20:38:32 +00:00
Cyril Jaquier dac67d6ea6 - Removed "mail-report.conf" from setup.py
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@367 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-18 21:52:28 +00:00
Cyril Jaquier acb2fc2c2b - Fixes in locking
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@366 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:53:59 +00:00
Cyril Jaquier 0d68fc9ef1 - Added "ignoreip" and a few other options in [DEFAULT]
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@365 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:38:44 +00:00
Cyril Jaquier c7451fa250 - Updated test cases
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@364 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:32:18 +00:00
Cyril Jaquier 2bcf1bb359 - Fixed some bugs
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@363 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:31:55 +00:00
Cyril Jaquier f3a90b9021 - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@362 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:03:07 +00:00
Cyril Jaquier c80164b329 - Added more locking
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@361 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:02:22 +00:00
Cyril Jaquier 94d167e620 - Improved beautifier
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@360 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:01:37 +00:00
Cyril Jaquier a618313206 - Added "ignoreip" feature
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@359 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:01:14 +00:00
Cyril Jaquier bd2b94cc84 - Added smmmaaallll comment
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@358 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 22:00:20 +00:00
Cyril Jaquier 88b68c0ad2 - Replaced jails = dict() with a Jails class for better concurrency control
- Set umask to 0077 at startup for security reason

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@357 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-17 21:59:29 +00:00
Cyril Jaquier 6333298fd7 - Replaced ... or ... or ... with ... in ...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@356 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-14 22:39:41 +00:00
Cyril Jaquier 7f7361a282 - Added Gamin (file and directory monitoring system) support
- If Gamin is not available, polling is used

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@355 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-14 22:05:32 +00:00
Cyril Jaquier e146d07394 - Added wildcards support for "logpath"
- Added "set <jail> addlogpath <path>" and "set <jail> dellogpath <path>"
- Adapted pyunit test

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@354 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-13 21:31:22 +00:00
Cyril Jaquier 96297b7cf3 - Fixed Command description with sed. Thanks to Yaroslav Halchenko
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@353 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-12 21:59:32 +00:00
Cyril Jaquier 1d9bc1152d - Added --version in help
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@352 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-12 21:58:28 +00:00
Cyril Jaquier b03d4d38bf - Updated (man pages)
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@351 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-12 21:40:19 +00:00
Cyril Jaquier 700c1b26a6 - Added man pages
- Added --version option
- Adapted help output to meet help2man requirements

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@350 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-12 21:33:00 +00:00
Cyril Jaquier 25664605aa - Apache date start with '['
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@349 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-11 21:15:24 +00:00
Cyril Jaquier d1cdfdaf01 - Small fixes
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@348 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 21:06:15 +00:00
Cyril Jaquier 1c0386c3ea - Updated for 0.7.2
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@347 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:53:55 +00:00
Cyril Jaquier df26a74d53 - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@346 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:53:21 +00:00
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
2006-09-10 20:52:22 +00:00
Cyril Jaquier 068dea8971 - Fixed the shutdown issue with timeout on socket
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@344 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:50:07 +00:00
Cyril Jaquier 86b07457cd - Implemented SYSLOG logging target
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@343 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:46:59 +00:00
Cyril Jaquier b38e0dfb1e - Better output when server is not started
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@342 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:46:19 +00:00
Cyril Jaquier 8df771ce6b - Added one more test for the date detector
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@341 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:44:36 +00:00
Cyril Jaquier 77eef14ed8 - Improved date detector
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@340 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:43:13 +00:00
Cyril Jaquier 5c020b99da - mail-report.conf is not a good idea as the jail is already deleted when creating the report
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@339 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-10 20:41:57 +00:00
Cyril Jaquier 500d203a2a - Updated
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@338 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-07 22:25:49 +00:00