Daniel Black
c1d1c181ce
DOC: document time detector changes more thoroughly
2013-10-02 12:27:54 +10:00
Daniel Black
b8d9c07280
Merge pull request #368 from grooverdan/0.9_datedetmerge
...
MRG: general merge from master + date time zone
2013-09-28 15:18:20 -07:00
Daniel Black
c5ad2552b2
Merge pull request #364 from kwirk/journal-datedetector
...
ENH: Journal datedetector - fail2ban-regex date pattern setting
2013-09-28 15:17:34 -07:00
Daniel Black
74434694dc
BF: more duplicate jail.conf entries - 3proxy exim{,-spam}, perdition
2013-09-28 21:38:15 +10:00
Daniel Black
5cf25a63df
BF: remove duplicate ssh-pf in jail.conf
2013-09-28 21:31:45 +10:00
Daniel Black
7b52a578bd
BF: group _f for %f in strptime for py2.5 compatibility
2013-09-28 21:29:39 +10:00
Daniel Black
6fd2179725
BF: timefix
2013-09-28 21:15:01 +10:00
Daniel Black
30d1f003e1
BF: add multiline support
2013-09-28 20:56:48 +10:00
Steven Hiscocks
011ccbc675
TST+BF: Fix bug in Filter.{get,set}DatePattern and improve tests
2013-09-24 22:25:17 +01:00
Steven Hiscocks
9c61adcad7
ENH+DOC: Allow setting of Epoch and TAI64N date pattern
...
Also add this to jail.conf man page
2013-09-24 22:11:04 +01:00
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.
2013-09-22 18:14:04 +01:00
Steven Hiscocks
badf9d03b9
ENH: Allow setting of ISO8601 via datepattern (default for systemd)
2013-09-22 18:12:16 +01:00
Daniel Black
b3cd5ca807
BF: correct scope for datetime.now
2013-09-22 21:51:51 +10:00
Daniel Black
37de5462be
ENH: iso8601 - remove default_timezone set to UTC, isn't valid any more - calculate from local timezone. Enforce T date/time separator in iso8601 regex. Make minutes in timezone optional as per ISO8601. Use consistant regex for ISO8601
2013-09-21 11:47:24 +10:00
Daniel Black
a0676cdd1e
ENH: add date format 2005-01-23 21:59:59 (%Y-%m-%d %H:%M:%S) so ISO8601 doesnt handle it
2013-09-21 11:44:50 +10:00
Daniel Black
855d802ba8
ENH: more detail in debug messages in date/time detection
2013-09-21 10:31:26 +10:00
Daniel Black
0035c99d07
BF: remove unused function DateDetector.getUnixTime
2013-09-21 10:22:15 +10:00
Daniel Black
ec0670f6d5
BF: fix MyTime imports
2013-09-21 09:44:24 +10:00
Daniel Black
33aee14fcc
DOC: comment examples of date formats
2013-09-21 09:16:31 +10:00
Daniel Black
cfd9778f3c
TST: fix unicode on test strings
2013-09-20 21:43:27 +10:00
Daniel Black
d9f0438a8d
MRG: remerge in %z and %f datetime format
2013-09-20 21:18:44 +10:00
Daniel Black
0f283f8b6f
BF: wrong variable name in previous merge
2013-09-20 21:16:39 +10:00
Daniel Black
9805d39b60
MRG: merge date changes to support timezones
2013-09-20 18:22:32 +10:00
Daniel Black
50a6289f03
BF: handle 2.4 and %f in strftime
2013-09-16 18:50:19 +10:00
Daniel Black
2cefce5ee0
TST: testDateDetectorTemplateOverlap fix for python-2.5 without %f in strftime
2013-09-16 00:09:41 +10:00
Daniel Black
d8f73c0205
ENH: full timezone support
...
ISO8601 and %z based timezones now fully supported.
Restructured so log lines are also only parsed once and return
a unixtime and a pattern match.
Fix all test cases to adjust for the change in return value.
2013-09-15 23:44:30 +10:00
Daniel Black
422e2527c4
TST: correct failData - faildata in UTC+1 not UTC
2013-09-15 23:42:38 +10:00
Daniel Black
4997b30193
TST: add datetime method on mytime for rework of datedetector
2013-09-15 23:39:41 +10:00
Daniel Black
d875e8ca0d
TST: fix test data - TAI64N timedata was in UTC+1 DST rather than UTC+1
2013-09-15 23:38:44 +10:00
Daniel Black
b785076548
TST: fix test data to match parsing of timezone in UTC
2013-09-15 23:37:04 +10:00
Daniel Black
8c1b828423
BF: capture of microseconds no longer needed. Closes gh-341
2013-09-09 03:41:12 +10:00
Daniel Black
d0098b0213
ENH: add timezone offest and subsecond support to Datedetector
2013-09-09 03:37:59 +10:00
Daniel Black
1f1a56174f
MRG: merge from master
2013-09-08 21:02:35 +10:00
Daniel Black
ad291d7e38
Merge pull request #346 from grooverdan/bsd-ipfw-default-unreach-port
...
BF: action.d/bsd-ipfw - use blocktype instead of unused action for icmp ...
2013-09-04 16:18:19 -07:00
Daniel Black
e5f1a7f050
Merge pull request #344 from grooverdan/osx
...
ENH: OSX ipfw based on Andy Fragen's work
2013-09-04 16:16:16 -07:00
Daniel Black
4face1f3e7
MRG: resolve conficts in action.d/osx-ipfw design
2013-09-05 09:07:10 +10:00
Andy Fragen
d258a51a23
after some research it looks like setting to unreachable better than deny
2013-09-04 11:28:03 -07:00
Daniel Black
317e82e144
TST: one more exim test case
2013-09-02 17:10:49 +10:00
Andy Fragen
fe557e5900
more specific actionunban
2013-09-01 13:09:51 -07:00
Andy Fragen
a4884f82cd
add mods from grooverdan and fix actionunban
...
actionunban still not working in grooverdan's mod. I made this one grep both <ip> and <port>. It should be more specific if the same <ip> is banned on multiple ports.
2013-08-31 08:39:19 -07:00
Yaroslav Halchenko
8ae55fe03b
ChangeLog entries (+few typo fixes) for the last merges
2013-08-31 10:04:03 -04:00
Yaroslav Halchenko
f1487bfb74
Merge pull request #240 from jpmx/master
...
bug fixed on redhat-initd
per @opoplawski blessing
2013-08-31 06:57:42 -07:00
Yaroslav Halchenko
1135ff5297
Merge pull request #319 from opoplawski/jail.d
...
Install empty /etc/fail2ban/jail.d and fail2ban.d directories
2013-08-31 06:55:33 -07:00
Yaroslav Halchenko
cd100ce274
Merge pull request #342 from grooverdan/datedetector_test
...
TST: improve datedetector error reporting
2013-08-31 06:53:59 -07:00
Daniel Black
6b0e2289d4
Merge pull request #335 from grooverdan/gh-333-bind
...
ENH: filter.d/named-refused.conf - BIND 9.9.3 regex changes. Closes gh-333
2013-08-30 21:34:22 -07:00
Daniel Black
f2bcf84893
BF: action.d/bsd-ipfw - use blocktype instead of unused action for icmp rejecting blocked packets
2013-08-31 11:40:04 +10:00
Daniel Black
749f215089
ENH: port optional
2013-08-31 11:07:15 +10:00
Daniel Black
8b22fa15b5
BF: reverted to simplier random rulenum. If your machine is handling 1000s of block the addition complexity isnt what you want
2013-08-31 11:03:01 +10:00
Daniel Black
808aa1a792
ENH: added jail.conf example. closes gh-340
2013-08-31 09:39:21 +10:00
Daniel Black
5741348f45
ENH: more options and ruggedness to prevent unintensional consequences
2013-08-31 09:38:18 +10:00