Commit Graph

35 Commits (267cbf5861edbf7a2e944d9ed1334baa7a373b10)

Author SHA1 Message Date
benrubson 8b171f7d25 Badips key is only used to retrieve list
6 years ago
sebres 22b9304562 action.d/badips.py: fix start of banaction on demand (which may be IP-family related), supplied action info with ticket instead of simulating it with dict;
6 years ago
sebres 5126068099 loglevel and shortloglevel combined to single parameter loglevel, below an example logging summary with NOTICE and rest with DEBUG log-levels:
6 years ago
benrubson 689938ee99 Add a shortloglevel badips.py option
6 years ago
Sergey G. Brester 65676baf8c fixed py3 incompatibility (for some reasons this file seems to be excluded from 2to3), anyway not needed, because int-type is already checked in str2LogLevel
6 years ago
Sergey G. Brester 4b751c84c3
badips.py: Rewrite new bool option "log" as "loglevel" and revert default to log-level (DEBUG).
6 years ago
Ben RUBSON 9d7c0e00c1
Also log number of IPs removed/added
6 years ago
Ben RUBSON 70e53b55c5
Typo
6 years ago
Ben RUBSON ec4c4b12c1
Add yes/no log option to badips.py
6 years ago
sebres 6ce67a6d21 coverage
6 years ago
sebres 8069eef50c badips: try to fix sporadic test errors if badips-server timed out resp. not available (502 bad gateway or similar).
7 years ago
Ben RUBSON 857767f04b Add 'any' badips.py bancategory (#2056)
7 years ago
sebres 07fcb24ff6 Merge pull request #2057 from benrubson/https
7 years ago
sebres f52c67238a action.d/badips.py: code review, ban command covered, debug log-messages, etc;
7 years ago
benrubson fce2a50165 badips.py, solve a str() issue under FreeBSD
7 years ago
benrubson e2665d39fd Use httpS with badips
7 years ago
sebres 8b0f6c5413 badips test cases check availability of badips service (and skip this tests if it not available)
8 years ago
sebres e39126f630 badip timeout option introduced, set to 30 seconds in our test cases
9 years ago
sebres 69f5623f83 code simplifying (remove duplication): agent will be always supplied as parameter from jail.conf
9 years ago
sebres ac31121432 amend to fix fail2ban-version: correct user-agent for badips.py "Fail2Ban/ver", changeable within jail/config now;
9 years ago
M. Maraun 2895d981fa Set Timeout at urlopen to 3 seconds
9 years ago
Lee Clemens fdc3172aec Fix PEP8 E302 expected 2 blank lines, found X
10 years ago
Yaroslav Halchenko d5e68abf95 ENH: check badips.com response on presence of "categories" in it
10 years ago
Steven Hiscocks db023be09b BF: Fix bad syntax in badips.py action
11 years ago
Yaroslav Halchenko 596b819bdc DOC: minor -- tabify docstring in badips.py action
11 years ago
Steven Hiscocks 9fcb92524e BF: badips.py action logging of exc_info on debug typo
11 years ago
Steven Hiscocks 16125ec81a BF: badips.py action methods not static due to use of self._logSys
11 years ago
Steven Hiscocks 9e374b159e ENH: Allow setting of badips.py key for reporting and blacklisting
11 years ago
Steven Hiscocks de43d1d6d5 ENH: Change badips.py default score to "3"
11 years ago
Steven Hiscocks 0222ff4677 Merge branch 'badips-blacklist' into 0.9
11 years ago
Steven Hiscocks 0c63d0061a DOC: Add documentation for badips.py action
11 years ago
Steven Hiscocks dfb46cfda6 BF: Require Python 2.7+ for badips.py action
11 years ago
Steven Hiscocks 5c7630c4be ENH: Allow separate blacklist category for badips.py action
11 years ago
Steven Hiscocks cf81ddd8e2 BF: Add error handling in badips.py action
11 years ago
Steven Hiscocks dff8909473 ENH: Add badips.com reporting and blacklisting action (python based)
11 years ago