Commit Graph

333 Commits (0.8)

Author SHA1 Message Date
Yaroslav Halchenko 97f9cfc0b0 ENH: 'heavydebug' level == 5 for even more debugging in tricky cases
12 years ago
Yaroslav Halchenko 21474884e0 ENH: now we know that logging handlers closing was still buggy in 2.6.2
12 years ago
Yaroslav Halchenko 571ff33fde ENH: issue a warning if jail name is longer than 19 symbols (Close #222)
12 years ago
Yaroslav Halchenko 14f92d9144 Merge pull request #225 from yarikoptic/master
12 years ago
Steven Hiscocks 8af3ffb332 BF: Fix for filterpoll incorrectly checking for jailless state
12 years ago
Yaroslav Halchenko 8161038987 ENH: strengthen detection of working pyinotify
12 years ago
Yaroslav Halchenko 90d6a4a6cd ENH: consistent operation of formatExceptionInfo + unittest for it
12 years ago
Yaroslav Halchenko 6fef85ff2d ENH: strip CR and LF while analyzing the lines (processLine) (Close #202)
12 years ago
Daniel Black 495f2dd877 DOC: purge of svn tags
12 years ago
Yaroslav Halchenko 89adcd7ff7 Merge branch PR #193 ASSP SMTP Proxy support (with some manual squashing)
12 years ago
Enrico Labedzki e27385e873 as yaroslav wishes
12 years ago
Enrico Labedzki 9185c070eb changed from DateASSPlike class to DateStrptime
12 years ago
Enrico Labedzki ba8f012637 fixed little things
12 years ago
Enrico Labedzki 24a8d07c20 added new date format support for ASSP SMTP Proxy
12 years ago
Yaroslav Halchenko 7c409dd24f Merge branch 'master' of git://github.com/fail2ban/fail2ban
12 years ago
Yaroslav Halchenko 8e63d4c6da ENH: "is None" instead of "== None" + tune ups in headers
12 years ago
Daniel Black d7862266d6 DOC: missing cinfo tags are ok. Log error for self referencing definitions
12 years ago
Daniel Black d28f3fa285 DOC: s/defination/definition/g learn to spell
12 years ago
Yaroslav Halchenko f21566049c BF: pyinotify backend should also handle IN_MOVED_TO events
12 years ago
Daniel Black 1d9abd1b39 ENH: allow recursive tag substitution in action files.
12 years ago
Steven Hiscocks 3d6791fe3e ENH: Minor change to action for consistency of execStart/Stop
12 years ago
Steven Hiscocks 28e9acf86a TST: no cover additions to server, primarily daemon creation
12 years ago
Yaroslav Halchenko ffe48741e3 DOC: thanks @kwirk for spotting the typos in exception message
12 years ago
Yaroslav Halchenko 301460f451 Merge remote-tracking branch 'pr/167/head': FD_CLOEXEC bug fixes (filters) + support (actions). Avoid sockets descriptors leak.
12 years ago
Yaroslav Halchenko 3e6be243bf Merge branch 'Support_for_mysql_log_example' of https://github.com/arto-p/fail2ban
12 years ago
Nicolas Collignon 39667ff6f7 FD_CLOEXEC support
12 years ago
Yaroslav Halchenko 33a31e096a RF+TST: bring inBanList back from private to protected and enabled its rudimentary unittests
12 years ago
Yaroslav Halchenko ba042c6e3a ENH: move pyinotify callback debug message into callback + delay string interpolations
12 years ago
Yaroslav Halchenko c29553354b ENH: FailManager -- improve log message to report total # of detected failures as well
12 years ago
Yaroslav Halchenko 5ea2ab14e6 ENH: elaborated debug log message about already detected failures
12 years ago
Yaroslav Halchenko 3b4084d471 BF: fixing up for handling of TAI64N timestamps and adding some unittest for prev commit (not effective much though)
12 years ago
Yaroslav Halchenko 7813340e1c Merge branch 'master' of https://github.com/sebres/fail2ban
12 years ago
Artur Penttinen 29d0df58be Added support for MySQL logfiles
12 years ago
Yaroslav Halchenko e3d3a6ac02 Merge branch 'datedetector-testcase' of https://github.com/kwirk/fail2ban
12 years ago
Steven Hiscocks 7a442f079f BF: When changing log target with python2.{4,5} handle KeyError
12 years ago
Steven Hiscocks 883892a683 Additional date/time formats for datedetector testcases
12 years ago
sebres b6bb2f88c1 invalid date recognition, irregular because of sorting template list, now via setRegex
12 years ago
Yaroslav Halchenko be42522bba Merge branch 'transmitter-testcase' of https://github.com/kwirk/fail2ban
12 years ago
Yaroslav Halchenko 5e5eaaf838 Merge pull request #134 from grooverdan/misc-fixes
12 years ago
Pascal Borreli a2b29b4875 Fixed typos
12 years ago
Steven Hiscocks 4bbbc07872 Added additional Transmitter tests, and some associated fixes
12 years ago
Daniel Black 23bbc60b1c do catch all exception
12 years ago
Daniel Black f0610c01d5 BF: allow more than single word for command action[start,stop,ban,unban,check] and for setcinfo too
12 years ago
Daniel Black c8c7b0b984 BF: general Exception catch was excessive. Only IOError and OSError are possible and has different meanings
12 years ago
Daniel Black 3665e6dc44 Add development documentation and framework for code coverage measurement
12 years ago
sebres d17b415371 invalid date recognition, irregular because of sorting template list (sometimes not reproducible by fail2ban-regex, cause will be not sorted)
12 years ago
Yaroslav Halchenko 59c35bc44a Downgrade log rotation detection message to DEBUG level from INFO. Closes: gh-129
12 years ago
Yaroslav Halchenko 154aa38e3f BF: do not shutdown logging until all jails stop -- so move into Server.quit()
12 years ago
Yaroslav Halchenko 012264dce1 BF: safeguard closing of log handlers + close in reverse order
12 years ago
Steven Hiscocks b36835f6f0 Added transmitter get cinfo option for action
12 years ago
Steven Hiscocks b6a68f5138 Fix for missing value in transmitter delaction
12 years ago
Steven Hiscocks ce3ab34dd8 Added ability to specify PID file
12 years ago
Yaroslav Halchenko f8983872ad BF: return str(host) to avoid spurious characters in the logs (Close gh-113)
12 years ago
Yaroslav Halchenko acab23bdfe RF: move exceptions used by both client and server into common/exceptions.py
12 years ago
Yaroslav Halchenko 6b2e76ba7f BF: pyinotify - use bitwise op on masks and do not try tracking newly created directories
12 years ago
blotus 96eb8986cc Escape ' and " in matches tag
12 years ago
Daniel Black fd7929863b name -> IP is a normal DNS lookup not a reverse
12 years ago
Yaroslav Halchenko 67145d8b78 ENH: assure that all date templates have unique names
12 years ago
Yaroslav Halchenko d1625253eb ENH: debug msgs on which template was taken (+ use "is" for None comparisons)
12 years ago
Yaroslav Halchenko 2b6366656f BF: make sorting of date templates stable
12 years ago
Yaroslav Halchenko 37a2e59d69 BF: guarantee that IP is stored as a base, non-unicode str (Closes gh-91)
12 years ago
Yaroslav Halchenko f10537941b ENH: To help with gh-87 added hints into the log on some failure return codes (e.g. 0x7f00 for this one)
12 years ago
Yaroslav Halchenko b159eabb51 BF: do not enable pyinotify backend if pyinotify is too old (Closes gh-80)
12 years ago
Yaroslav Halchenko f52ba9923a ENH: downgrade "already banned" from WARN to INFO level (Closes gh-79)
12 years ago
David Engeset 2d672d1c81 Added in while loop to process the Fail Manager after the requested banned IP was added to its queue. This solves the issue of needing to touch the log file that is being monitored to get the IP to be banned accordingly. Added in import of FailManagerEmpty exception class.
12 years ago
Yaroslav Halchenko f14c7ae401 ENH: refactored previous commit to make it more Pythonic (With prev commit closes gh-86, gh-81)
12 years ago
David Engeset 6288ec2757 Added in command option to unban and IP, just like using 'banip'. Command looks like: fail2ban-client set <jail name> unbanip <ip>
12 years ago
Yaroslav Halchenko 8e64c281dd BF: in code we should use MyTime wrapper instead of time module directly
12 years ago
Yaroslav Halchenko 09355663f7 BF: (python 2.4) -- access to staticmethod should go via Class
12 years ago
Yaroslav Halchenko 5becaf8ef2 BF: (python 2.[45]) store backends names in a list to use .index later on (Closes gh-83)
12 years ago
Yaroslav Halchenko 83109bce14 BF: escape the content of <matches> since its value could contain arbitrary symbols
12 years ago
Yaroslav Halchenko 2d66f31ef5 ENH: instead of "Invalid command" warning log exception why command failed
13 years ago
Yaroslav Halchenko c6f5d854d3 ENH+BF: filtergamin -- to be more inline with current design of filterinotify
13 years ago
Yaroslav Halchenko d9248a6cf8 BF+RF: pyinotify refreshes watcher upon CREATE, unified/simplified *(add|del)LogPath among *Filters
13 years ago
Yaroslav Halchenko 3c95121a8b BF: pyinotify -- monitor the parent directory for IN_CREATE + process freshly added file (Closes gh-44)
13 years ago
Yaroslav Halchenko baa09098f0 RF/BF: just use pyinotify.ThreadedNotifier thread in filterpyinotify
13 years ago
Yaroslav Halchenko 25674a95f8 RF: filter.py -- single readline in a loop
13 years ago
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
13 years ago
Chris Reffett a018a26133 Fixed addBannedIP to add enough failures to trigger a ban, rather than
13 years ago
Yaroslav Halchenko 2245ff5b41 ENH: rudimentary __repr__ for Filter and Jail + moved usedns into set method
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
13 years ago
Yaroslav Halchenko ed16ecc50a Enforce "ip" field returned as str, not unicode so that log message stays non-unicode
13 years ago
Lee Clemens d73a71f5cf ENH: Add usedns parameter for the jails
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
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