Lee Clemens
3186df55e3
add Ignore DNS and IP test cases
2015-02-02 21:55:44 -05:00
Yaroslav Halchenko
1fbafa46c9
Merge pull request #918 from sebres/issue/161
...
Issue/161
2015-02-02 21:44:57 -05:00
Yaroslav Halchenko
73af02ffc6
Merge pull request #940 from leeclemens/ENH/ApacheFakeGoogleBot
...
New jail: apache-fakegooglebot
2015-02-02 21:44:04 -05:00
Yaroslav Halchenko
7ada96b4e9
Merge pull request #932 from opoplawski/dovecot
...
Dovecot - dovecot auth failure from EL7
2015-02-02 21:37:28 -05:00
Yaroslav Halchenko
767ac4ecac
Merge branch 'master' of git://github.com/fail2ban/fail2ban
...
* 'master' of git://github.com/fail2ban/fail2ban:
Remove trailing semicolons
2015-02-02 21:21:54 -05:00
Lee Clemens
2d266d96d5
Remove trailing semicolons
2015-02-02 19:03:43 -05:00
Lee Clemens
eb17b68641
fix test for invalid IP
2015-02-02 14:03:35 -05:00
Lee Clemens
fef031b3cd
test ipToName Exception
2015-02-02 14:01:48 -05:00
Lee Clemens
4cfbb840ad
move test to more sensible function name
2015-02-02 13:40:56 -05:00
Lee Clemens
0463518d28
Add testcase for DNSUtils.ipToName
2015-02-02 13:14:53 -05:00
Lee Clemens
841c476045
Merge branch 'enh/fakegooglebot' of https://github.com/yarikoptic/fail2ban into yarikoptic-enh/fakegooglebot
...
Conflicts:
config/filter.d/ignorecommands/apache-fakegooglebot
2015-02-02 13:01:23 -05:00
Yaroslav Halchenko
15b65c7ad2
NF: apache-fakegooglebot ignorecommand + DNSUtils.ipToName
2015-02-02 12:19:20 -05:00
Lee Clemens
af078532ac
New jail: apache-fakegooglebot
...
Detects fake googlebot user agents in apache access log
2015-02-02 00:42:01 -05:00
František Šumšal
c8e82f18b6
Add jail nginx-botsearch
...
Jail blocks requests for predefined non-existent folders. Based on
apache-botsearch jail.
2015-01-29 17:57:52 +01:00
Orion Poplawski
b4776a1ba0
Match dovecot unknown user line
2015-01-29 09:37:37 -07:00
Orion Poplawski
3bc92610f7
Add dovecot auth failure from EL7
2015-01-29 09:11:59 -07:00
Lee Clemens
f4341999cd
simplify/unify log message
2015-01-28 19:43:22 -05:00
Lee Clemens
076b103f97
Conditionally log Ignore IP, and pass in reason (ignoreip, ignorecommand)
2015-01-27 21:06:06 -05:00
Lee Clemens
887fa2a3a0
Update protocol with [FLAVOR] argument to status <JAIL>
2015-01-26 20:11:53 -05:00
Lee Clemens
297a32e6bb
Update test since JailThread.action was changed from property to method
2015-01-26 20:02:49 -05:00
Lee Clemens
486214585e
Update extended status to accept additional argument, flavor
...
Default to as-in behavior, or flavor=="basic"
2015-01-26 19:38:06 -05:00
Lee Clemens
735c51adae
fix test of new banManager's instance
2015-01-24 12:45:42 -05:00
Lee Clemens
a0debea56a
test dnspython nxdomain returned
2015-01-24 12:45:42 -05:00
Lee Clemens
07a47179a7
conditionally import dnspython
2015-01-24 12:45:42 -05:00
Lee Clemens
405f363fe8
Conditionally test fail2ban-client status <JAIL> extended when dnspython is installed
2015-01-24 12:45:42 -05:00
Lee Clemens
ba69969057
Add `pass` to empty methods
2015-01-24 12:45:42 -05:00
Lee Clemens
60ac0a1a17
Add extended info to status output using Cyrmu
2015-01-24 12:45:42 -05:00
sebres
d0b932aaca
code review + more test cases (embedded replace in a string)
2015-01-21 09:44:55 +01:00
sebres
6b42878b8c
better recognition of embedded-recursive substitution to repeat interpolation
2015-01-20 17:31:17 +01:00
sebres
33e9e2174a
recursive/embedded version of issue/907;
...
test cases merged from remote-tracking branch 'yarikoptic:enh/embedded_tags' into issue/907
infinite busy loop on _escapedTags match in substituteRecursiveTags gh-907
2015-01-20 17:18:25 +01:00
sebres
607af36ad3
workaround for the "Bad file descriptor" issue on Python 2.7, gh-161 : asyncore.loop() using poll
...
by the way, prevents to write "'build/bdist.linux-x86_64' does not exist -- can't clean it" into stderr;
2015-01-20 14:08:30 +01:00
sebres
b04a51246f
infinite busy loop on _escapedTags match in substituteRecursiveTags gh-907
2015-01-20 11:32:15 +01:00
Yaroslav Halchenko
fdd93d1475
ENH: unittest to catch actions without Init or Definition section and all must have actionban at least
2015-01-08 21:51:52 -05:00
Yaroslav Halchenko
c7edd9e67f
Merge pull request #901 from leeclemens/ENH/PostfixRBL
...
Create Jail for Postfix based on RBL
2015-01-07 21:45:36 -05:00
Lee Clemens
bda8dc1926
Merge branch 'master' of github.com:fail2ban/fail2ban into ENH/PostfixRBL
2015-01-03 15:29:42 -05:00
Lee Clemens
38641e741a
Merge branch 'master' of github.com:fail2ban/fail2ban into BF/755-strptime
...
Conflicts:
ChangeLog
2015-01-03 15:25:54 -05:00
Lee Clemens
b26725f654
Move strptime workaround to fail2ban/__init__.py
2015-01-03 13:45:06 -05:00
Lee Clemens
fe72a5585c
Create Jail for Postfix based on RBL
...
Use RBL blocks to ban addresses, unique Jail so maxretry can be set to 1 (vs postfix.conf)
2014-12-30 19:06:17 -05:00
Lee Clemens
e6ffa2e4a1
Update year in postfix logs test file
2014-12-30 18:10:19 -05:00
Lee Clemens
2d7429c47c
Add 'Client host rejected error message' regex
...
Not sure if it was reworded (using Postfix 2.6) or a slightly different error, but I only have "Client host rejected: cannot find your hostname"
2014-12-30 18:05:19 -05:00
Yaroslav Halchenko
bcfcefa203
Merge branch 'patch-2' of https://github.com/szepeviktor/fail2ban
...
* 'patch-2' of https://github.com/szepeviktor/fail2ban :
downcase example
Added an item to "Fixes"
postfix-sasl failregex case insensitive
2014-12-30 16:35:09 -05:00
Yaroslav Halchenko
cc89649d04
BF: adjusted for new IP of example.com
...
Conflicts:
fail2ban/tests/filtertestcase.py
2014-12-21 21:45:30 -05:00
Viktor Szépe
a9b6a3754b
downcase example
2014-12-11 21:01:52 +01:00
Yaroslav Halchenko
fb2b52af14
Merge pull request #879 from sebres/broken-test-setup_install_root
...
testSetupInstallRoot will be always skipped, ...
2014-12-05 11:20:31 -05:00
sebres
a71a64733a
clean all after test setup (removes a build directory in current root of fail2ban)
2014-12-05 16:39:17 +01:00
bes-internal
ccc986b7d8
exim filter: correct failregex for exim with extended log options
...
incoming_interface, incoming_port, outgoing_port
2014-12-04 13:34:44 +03:00
sebres
7d4f071d4b
small fix: no cover for failed case
2014-12-03 15:25:27 +01:00
sebres
d62b046704
testSetupInstallRoot will be always skipped, because of "wrong" location of 'setup.py';
2014-12-03 14:45:46 +01:00
sebres
80fb48c5b0
Merge remote-tracking branch 'remotes/upstream/master' into sebres:addfailregex-gh-867
2014-12-01 13:14:42 +01:00
Yaroslav Halchenko
a170afcb76
Merge pull request #839 from sebres/fix-none-getattempt-lambda
...
Fix none getattempt lambda (close #838 , close #848 )
2014-11-29 21:33:09 -05:00
sebres
effdb450fc
better and scalable solution for gh-867 (and gh-868), using only name convention like %(known/failregex)s to add custom expressions, so no interface changes in jail.conf are necessary (for example see test-known-interp in test cases);
2014-11-29 20:33:32 +01:00
sebres
00c2ac4b03
python 2.6 compatibility: preventing RuntimeError: dictionary changed size during iteration.
2014-11-28 19:50:52 +01:00
sebres
d63b125877
interpolation of config readers extended with `%(known/parameter)s`.
...
(means last known option with name `parameter`).
2014-11-28 19:06:17 +01:00
sebres
1439152121
test cases extended (now correct)
2014-11-28 14:52:12 +01:00
sebres
cad09d2df3
BF: failregex declared direct in jail was joined to single line, (specifying of multiple expressions was not possible);
...
feature request (gh-867): new options for jail introduced addfailregex/addignoreregex: extends regex specified in filter (opposite to failregex/ignoreregex that overwrites it);
2014-11-28 03:17:47 +01:00
Serg G. Brester
6dfddbcdf6
Bug fix in formatJournalEntry, gh-851
...
Unhandled exception in fail2ban 0.9.1 #851
2014-11-07 01:21:38 +01:00
sebres
92ba5ae09c
few confusing merge info helper
2014-10-29 22:08:44 +01:00
sebres
46a8899f20
code review
2014-10-29 19:27:45 +01:00
sebres
8dbc04aa06
Test cases fixed:
...
testFail2BanExceptHook - use local sys.__excepthook__ to check was really executed and prevent write error in stderr.
2014-10-29 13:30:24 +01:00
sebres
518cc92ccc
actions: bug fix in lambdas in checkBan, because getBansMerged could return None (purge resp. asynchronous addBan), make the logic all around more stable;
...
test cases: extended with test to check action together with database functionality (ex.: to verify lambdas in checkBan);
database: getBansMerged should work within lock, using reentrant lock (cause call of getBans inside of getBansMerged);
2014-10-29 12:36:21 +01:00
Yaroslav Halchenko
7acddcbe4a
Post-release boost to .dev
2014-10-27 23:45:51 -04:00
Yaroslav Halchenko
987356d6c0
Changes for the 0.9.1 release versioning
2014-10-27 21:43:17 -04:00
Yaroslav Halchenko
fc145eb795
Merge pull request #748 from pacop/master
...
ENH: Add dateTime format for PortSentry
2014-10-25 12:34:00 -04:00
Yaroslav Halchenko
8a453018a9
Merge pull request #830 from sebres/_tent/cache-config-read-fix1
...
fix: fail2ban-regex with filter file failed
2014-10-25 12:30:55 -04:00
pacop
e3a037ee3f
merge master
2014-10-25 18:15:34 +02:00
sebres
3dac765598
ConfigReader.touch renamed into protected _create_unshared
2014-10-25 17:20:01 +02:00
Yaroslav Halchenko
e1a5decc00
DOC: adjust docs in mytime to place docs into docstrings
2014-10-25 09:34:37 -04:00
Yaroslav Halchenko
caa6006a31
ENH: do use @staticmethod (we are well beyond support of 2.4 now)
2014-10-25 09:25:18 -04:00
sebres
07d4badfd0
testExecuteTimeout fixed: give a test still 1 second, because system could be too busy
2014-10-24 05:42:58 +02:00
sebres
bef0502e6b
coverage: no cover (for failed except)
2014-10-24 05:28:35 +02:00
sebres
0b0ea41f87
fix: fail2ban-regex with filter file failed (after merging #824 , because test case missing);
...
test case for 'readexplicit' added;
2014-10-24 04:59:44 +02:00
Yaroslav Halchenko
d4015d6566
ENH: remove obsolete code for python < 2.6 (we support >= 2.6)
2014-10-23 14:51:51 -04:00
Yaroslav Halchenko
78e1a13fad
Merge branch '_tent/cache-config-read' of https://github.com/sebres/fail2ban
...
* '_tent/cache-config-read' of https://github.com/sebres/fail2ban :
code review, change log entries added;
reset share/cache storage (if we use 'reload' in client with interactive mode)
normalize tabs/spaces in docstrings;
cache-config-read-v2 merged; logging normalized, set log level for loading (read or use shared) file(s) to INFO; prevent to read some files twice by read inside "_getIncludes" and by "read" self (occurred by only one file);
code review; more stable config sharing, configurator always shares it config readers now;
code review: use the same code (corresponding test cases - with sharing on and without it);
rewritten caching resp. sharing of ConfigReader and SafeConfigParserWithIncludes (v.2, first and second level cache, without fingerprinting etc.);
code review
ConfigReader/ConfigWrapper renamed as suggested from @yarikoptic; + code clarifying (suggested also);
Partially merge remote-tracking from 'sebres:cache-config-read-820': test cases extended, configurator.py adapted for test case.
ENH: keep spitting out logging to the screen in LogCaptureTestCases if HEAVYDEBUG
test case for check the read of config files will be cached;
more precise by test
ConfigWrapper class introduced: sharing of the same ConfigReader object between JailsReader and JailReader (don't read jail config each jail); sharing of the same DefinitionInitConfigReader (ActionReader, FilterReader) between all jails using that; cache of read a config files was optimized; test case extended for all types of config readers;
config cache optimized - prevent to read the same config file inside different resources multiple times; test case: read jail file only once;
test case for check the read of config files will be cached;
caching of read config files, to make start of fail2ban faster, see issue #820
2014-10-23 14:28:33 -04:00
Yaroslav Halchenko
86a5f42f73
BF: made tests util digest.py friendly to python3
2014-10-12 16:40:29 -04:00
sebres
7d3e6e9935
code review, change log entries added;
2014-10-10 20:06:58 +02:00
sebres
73a06d55a8
reset share/cache storage (if we use 'reload' in client with interactive mode)
2014-10-10 18:50:24 +02:00
sebres
7f5d4aa7a6
normalize tabs/spaces in docstrings;
2014-10-10 16:59:40 +02:00
sebres
95bdcdecaa
cache-config-read-v2 merged;
...
logging normalized, set log level for loading (read or use shared) file(s) to INFO;
prevent to read some files twice by read inside "_getIncludes" and by "read" self (occurred by only one file);
2014-10-10 16:49:08 +02:00
sebres
02a46d0901
code review;
...
more stable config sharing, configurator always shares it config readers now;
2014-10-10 12:05:49 +02:00
sebres
e0eb4f2358
code review: use the same code (corresponding test cases - with sharing on and without it);
2014-10-10 02:47:42 +02:00
sebres
c35b4b24d2
rewritten caching resp. sharing of ConfigReader and SafeConfigParserWithIncludes (v.2, first and second level cache, without fingerprinting etc.);
2014-10-10 02:10:13 +02:00
sebres
37952ab75f
code review
2014-10-09 19:51:53 +02:00
sebres
f67053c2ec
ConfigReader/ConfigWrapper renamed as suggested from @yarikoptic;
...
+ code clarifying (suggested also);
2014-10-09 19:01:49 +02:00
sebres
f6723a12ff
Merge branch 'cache-config-read-820' into _tent/cache-config-read
2014-10-09 18:01:31 +02:00
sebres
b62ce14ccd
Partially merge remote-tracking from 'sebres:cache-config-read-820':
...
test cases extended, configurator.py adapted for test case.
2014-10-09 18:00:45 +02:00
Yaroslav Halchenko
0c5f11079c
ENH: keep spitting out logging to the screen in LogCaptureTestCases if HEAVYDEBUG
2014-10-09 10:47:00 -04:00
sebres
f31607ded1
test case for check the read of config files will be cached;
...
Conflicts:
fail2ban/tests/clientreadertestcase.py -- removed not needed
time in imports
2014-10-09 10:30:17 -04:00
sebres
51cae63bf0
more precise by test
2014-10-09 15:39:58 +02:00
sebres
4244c87802
ConfigWrapper class introduced: sharing of the same ConfigReader object between JailsReader and JailReader (don't read jail config each jail);
...
sharing of the same DefinitionInitConfigReader (ActionReader, FilterReader) between all jails using that;
cache of read a config files was optimized;
test case extended for all types of config readers;
2014-10-09 14:51:08 +02:00
sebres
2a54e61238
config cache optimized - prevent to read the same config file inside different resources multiple times;
...
test case: read jail file only once;
2014-10-08 15:44:32 +02:00
sebres
af4b48e841
test case for check the read of config files will be cached;
2014-10-07 14:37:40 +02:00
pacop
ce4f2d1c88
added filter for PortSentry with jail and samples
2014-10-04 15:08:12 +02:00
pacop
37acc6b832
ENH: Add dateTime format for PortSentry
...
Added dateTime format for PortSentry with EPOCH format
2014-10-04 14:55:22 +02:00
sebres
d00af327c5
caching of read config files, to make start of fail2ban faster, see issue #820
2014-10-03 02:11:55 +02:00
Yaroslav Halchenko
05fcb1f104
Merge pull request #813 from schaal/tests-configdir-env-variable
...
tests: Add function to utils to calculate CONFIG_DIR
2014-10-01 14:19:26 -04:00
Daniel Schaal
270ea363d3
tests: define CONFIG_DIR in utils.
2014-10-01 19:50:03 +02:00
SlowRiot
5d526bbeb1
forgot to add test case to last commit
2014-09-29 00:49:22 +01:00
Nick Weeds
2c158fe168
Add apache filter for AH01630 client denied by server configuration
2014-09-14 21:54:05 +01:00
Yaroslav Halchenko
0e1f8f7f39
RF: remove those two additional failregexes for the postfix
...
see comment
https://github.com/fail2ban/fail2ban/pull/804\#discussion_r17512426
2014-09-13 10:25:27 -04:00
Paul Traina
249e169d8e
Update test cases and also suport smtps per request.
2014-09-08 11:53:51 -07:00
Yaroslav Halchenko
f756278fe5
ENH: just a bit more descriptive exception ;-)
2014-08-12 11:53:54 -04:00
Yaroslav Halchenko
b2a1032f57
ENH/BF(TST): making permissions restrictive is not sufficient -- really remove file to test
2014-08-12 11:31:42 -04:00
Yaroslav Halchenko
6fc04c2256
Merge branch 'bf+enh/cyrus-imap' of https://github.com/yarikoptic/fail2ban (with some tune up to Changelog entry)
...
* 'bf+enh/cyrus-imap' of https://github.com/yarikoptic/fail2ban :
ENH: cyrus-imap -- catch also 'user not found' attempts
BF: cyrus-imaps -- catch also for secured daemons
Conflicts:
ChangeLog
2014-08-11 13:09:43 -04:00
Yaroslav Halchenko
f9cfbd66e6
Merge pull request #771 from szepeviktor/patch-1
...
named users + smtp auth probes
2014-07-28 10:14:18 -04:00
Yaroslav Halchenko
81c98f77ca
Merge pull request #769 from kwirk/unban-database
...
BF: Remove manually unbanned IPs from persistent database
2014-07-27 21:54:44 -04:00
Yaroslav Halchenko
45c1095606
Merge pull request #750 from niorg/master
...
Added Directadmin filter, jail and log test
2014-07-27 21:47:07 -04:00
Yaroslav Halchenko
3339dc8d84
ENH: cyrus-imap -- catch also 'user not found' attempts
2014-07-25 10:13:04 -04:00
Yaroslav Halchenko
3e5c598b79
BF: cyrus-imaps -- catch also for secured daemons
2014-07-25 10:02:40 -04:00
Szépe Viktor
68bf5a1c36
I don't understand those years.
2014-07-20 21:23:57 +02:00
Szépe Viktor
9c4f9a3de8
added Jul 3 & Jul 4
2014-07-20 21:13:55 +02:00
Steven Hiscocks
01d02ca5e6
BF: Remove manually unbanned IPs from persistent database
...
Stops them being restored when Fail2Ban is restarted. Particularly this
is an issue with bantime < 0
Fixes gh-768
2014-07-19 15:17:32 +01:00
Steven Hiscocks
8e0a59f04d
Merge pull request #763 from Sean-Der/round-banip-time
...
BF: Round timeofban before inserting into the persistant database
2014-07-19 14:56:32 +01:00
Sean DuBois
ac9fa90625
BF: Round timeofban before inserting into the persistant database
2014-07-17 21:57:52 +00:00
Sean DuBois
84b7e93a47
ENH: Add version command to protocol
...
TST: Add test for version server command
2014-07-15 06:19:13 +00:00
Cyril Roos
add8e61036
Added Directadmin filter, jail and log test
2014-07-02 13:52:06 +02:00
Yaroslav Halchenko
0adb10f653
Merge branch 'ainfo-copy' of https://github.com/kwirk/fail2ban
...
* 'ainfo-copy' of https://github.com/kwirk/fail2ban :
TST: actions modifying aInfo test more robust
TST: Test for actions modifying (un)ban aInfo
BF: aInfo could be modified by actions, causing unexpected behaviour
2014-06-22 10:53:30 -04:00
Steven Hiscocks
dd3ab858dd
TST: actions modifying aInfo test more robust
2014-06-22 13:56:32 +01:00
Steven Hiscocks
7640aa0918
TST: Test for actions modifying (un)ban aInfo
2014-06-22 13:47:25 +01:00
Steven Hiscocks
2d54161696
Merge branch 'kwirk/harmonize-log-msgs'
...
Conflicts:
ChangeLog - Keep all additions
2014-06-22 12:57:49 +01:00
Steven Hiscocks
94232d7c31
Merge pull request #726 from pmarrapese/master
...
Minor improvement to sshd filter
2014-06-17 23:43:42 +01:00
Steven Hiscocks
8268c1641f
BF: aInfo could be modified by actions, causing unexpected behaviour
...
A separate copy of aInfo is passed to each action
2014-06-17 23:24:23 +01:00
Yaroslav Halchenko
4190a4030c
Merge branch 'sebres-strptime-bug' of https://github.com/kwirk/fail2ban
...
* 'sebres-strptime-bug' of https://github.com/kwirk/fail2ban :
DOC: Tweak ChangeLog and THANKS
DOC: Update docs in reference to time zone related fix
TST: Fix tests due to @sebres fix and based from gh-349 reverts
strptime bug fix: if gmtoff is None we have 1 hour increment of time (through utctimetuple), compare: >>>> datetime.datetime.fromtimestamp(time.mktime(datetime.datetime.now().timetuple())).strftime("%Y-%m-%d %H:%M:%S") '2014-04-29 17:26:31' >>>> datetime.datetime.fromtimestamp(time.mktime(datetime.datetime.now().utctimetuple())).strftime("%Y-%m-%d %H:%M:%S") '2014-04-29 18:26:37'
Conflicts:
ChangeLog
2014-06-16 09:28:41 -04:00
Steven Hiscocks
664f1db0ba
BF: Fix getLogger for single level log level names
2014-06-10 20:58:57 +01:00
Steven Hiscocks
9764c78415
ENH: Rename fail2ban_excepthook to excepthook
2014-06-10 20:38:18 +01:00
Steven Hiscocks
4fc7f1a831
ENH: Tweak naming of getF2BLogger, and ensure consistent use
2014-06-10 20:36:19 +01:00
Steven Hiscocks
f7da091437
ENH: Log unhandled exceptions to Fail2Ban log
2014-06-09 22:27:51 +01:00
Steven Hiscocks
e8131475cd
ENH: Realign and harmonise log messages with getF2BLogger helper
2014-06-09 22:17:00 +01:00
JoelSnyder
54317d7c3b
Create test for oracleims filter
...
This test file shows configuration information for the application, three log lines that DO match the pattern, and one log line that does NOT match the pattern (the first one).
2014-06-02 22:58:39 -07:00
pmarrapese
96918acee4
more explicit match for sshd filter & added test
2014-05-19 20:47:16 -07:00
Steven Hiscocks
0ca97431a0
ENH: Clearer warning with lines which failed to decode correctly
2014-05-15 22:48:03 +01:00
sebres
213c4315c3
fix a TypeError bugs like "Failed to execute ban jail 'pam-generic' action 'iptables-allports'"
...
getAttempt returns not a list (numeric), so by call of both lambda we have a TypeError except;
simplifying code;
2014-05-15 19:41:00 +02:00
Steven Hiscocks
8843423c8f
TST: Fix tests due to @sebres fix and based from gh-349 reverts
2014-05-14 23:01:14 +01:00
sebres
2bf0b4a50c
strptime bug fix: if gmtoff is None we have 1 hour increment of time (through utctimetuple), compare:
...
>>>> datetime.datetime.fromtimestamp(time.mktime(datetime.datetime.now().timetuple())).strftime("%Y-%m-%d %H:%M:%S")
'2014-04-29 17:26:31'
>>>> datetime.datetime.fromtimestamp(time.mktime(datetime.datetime.now().utctimetuple())).strftime("%Y-%m-%d %H:%M:%S")
'2014-04-29 18:26:37'
2014-05-14 22:29:06 +01:00
Yaroslav Halchenko
2526dbae92
Merge branch 'recursive-tag-fix' of https://github.com/kwirk/fail2ban
...
* 'recursive-tag-fix' of https://github.com/kwirk/fail2ban :
ENH: explicitly define tags which should be escaped
DOC: ChangeLog update for recursive tag bug fix
BF: Tags not fully recursively substituted
Conflicts:
ChangeLog -- kept all as is
2014-05-13 11:23:30 -04:00
Steven Hiscocks
1e586fb0e9
ENH: explicitly define tags which should be escaped
2014-05-11 14:49:49 +01:00
Yaroslav Halchenko
c619202d6f
Merge branch 'master' of github.com:fail2ban/fail2ban
...
* 'master' of github.com:fail2ban/fail2ban:
ENH: Match non "Bye Bye" for sshd locked accounts failregex
Even stricter monit regex, now covers entire line
Tidy up filter.d/monit.conf, make regex more complete. Add ChangeLog / THANKS entry. Add test cases.
ENH: Move traceback formatter to from tests.utils to helpers
Block brute-force attempts against the Monit gui
2014-05-10 20:02:47 -04:00
Steven Hiscocks
904b362215
DOC: ChangeLog update for recursive tag bug fix
...
Also minor typo fixes in comments
2014-05-09 20:25:44 +01:00
Steven Hiscocks
77ba065571
Merge pull request #697 from jhmartin/monit_admin_hack
...
Block brute-force attempts against the Monit gui
2014-05-07 22:23:01 +01:00
Yaroslav Halchenko
3471f13a84
Merge pull request #700 from kwirk/format-traceback-to-helpers
...
ENH: Move traceback formatter to from tests.utils to helpers
2014-05-07 09:09:01 -04:00
Yaroslav Halchenko
1f8b554d31
Merge branch 'database-persistent-bans' of https://github.com/kwirk/fail2ban
...
* 'database-persistent-bans' of https://github.com/kwirk/fail2ban :
BF: bantime < 0 database should return all bans, as they are persistent
Conflicts:
ChangeLog - kept all ;)
2014-05-05 23:29:35 -04:00
Yaroslav Halchenko
3eabf4a7bd
Merge pull request #708 from kwirk/ssh-bye-bye
...
ENH: Match non "Bye Bye" for sshd locked accounts failregex
2014-05-05 23:22:57 -04:00
Steven Hiscocks
b3266ba44d
BF: Tags not fully recursively substituted
...
Note: recursive check ignored for "matches", as tags would be escaped,
and hence shouldn't match "<%s>" as "<ip>" would become "\<ip\>". This
therefore maintains advantage of delayed call for {ip,jail,}matches.
Fixes gh-713
2014-05-03 14:28:13 +01:00
Steven Hiscocks
cf3a6015f0
BF: Avoid closing "/dev/urandom" for Python 3.4.0
...
Upstream bug: http://bugs.python.org/issue21207
Closes gh-687
2014-05-03 12:44:03 +01:00
Steven Hiscocks
bc10b64c69
ENH: Match non "Bye Bye" for sshd locked accounts failregex
2014-04-27 13:35:55 +01:00
Steven Hiscocks
bbcbefd494
BF: bantime < 0 database should return all bans, as they are persistent
2014-04-22 19:20:44 +01:00
Steven Hiscocks
a7766d3316
DOC: Add notice message for systemd backend when no journal match
2014-04-20 17:59:41 +01:00
Jason Martin
72bfd14330
Tidy up filter.d/monit.conf, make regex more complete.
...
Add ChangeLog / THANKS entry.
Add test cases.
2014-04-19 13:04:03 -07:00
Steven Hiscocks
03d90c2f42
BF: recidive filter and samples at wrong log level: WARNING->NOTICE
2014-04-19 18:07:23 +01:00
Steven Hiscocks
6a740f684a
ENH: Move traceback formatter to from tests.utils to helpers
...
Now allows for tests to be removed from package if desired
2014-04-18 23:27:30 +01:00
Yaroslav Halchenko
5e179f5dcb
TST: skip the test if a known problem with Python 2.6 is detected
...
As was original "discovered" while running tests on OSX with python2.6:
http://nipy.bic.berkeley.edu/builders/fail2ban-py2.7-osx-10.6_master/builds/6/steps/shell_2/logs/stdio
2014-04-17 22:23:20 -04:00