Commit Graph

3513 Commits (be3e95b76d031a66505bc6b02dfdf6b1a4abb00d)
 

Author SHA1 Message Date
Alexander Belykh f7f91a8bd4 Refactor common code out of nftables-multiport/allports.conf
9 years ago
sebres 25a09352e4 + ChangeLog entry
9 years ago
sebres 69f5623f83 code simplifying (remove duplication): agent will be always supplied as parameter from jail.conf
9 years ago
Alexander Belykh 618e97bce8 Add nftables actions
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
Jordan Moeser e133762a28 Added HAProxy HTTP Auth filter
9 years ago
sebres cf334421bd Provides fail2ban version to jail (as interpolation variable during parse of jail.conf);
9 years ago
Yaroslav Halchenko b76aede40d ENH(TST): verify that passed bantime is non-0 and int
9 years ago
Yaroslav Halchenko 28c9832293 RF: harmonize jail.conf (no explicit enabled=false in jails, match filter name for screesharingd, etc)
9 years ago
Yaroslav Halchenko 69aa1feac0 Merge "Mac OS Screen Sharing filter" PR 1232
9 years ago
Yaroslav Halchenko 16710237e3 Merge remote-tracking branch 'origin/master'
9 years ago
sebres 134c33cc6d fail2ban-testcases: added option "--ignore": negate [regexps] filter, to ignore tests matched specified regexps
9 years ago
sebres 8eca2ecd84 optimized version of "str2seconds" with pre-compiled regexp;
9 years ago
sebres da51fbf9c6 code review and performance optimization:
9 years ago
sebres 3f2b58e973 datedetector: matchTime, template list etc. rewritten because of performance degradation (without sorting templates now) - in-place reordering using hits and last used time;
9 years ago
sebres e065941ac5 use "maxEntries" (currently 50 as default) as range for max number of the last matches/failures, fail2ban will hold per IP in the list of failures in failmanager resp. in the database;
9 years ago
sebres 935d79eaae 1) prevents a bug by logging stdout/stderr if retcode still None:
9 years ago
sebres 6406f6f560 background servicing (temporally executed from failmanager): prevents memory leak on some platforms/python versions, using forced GC in periodic intervals (latency and threshold);
9 years ago
sebres a10eb39bbe test cases extended with memory leakage check
9 years ago
sebres f7cc55103c optimized FailManager: increase performance, try to prevent memory leakage (don't copy failures resp. it list on some operations)
9 years ago
sebres f143ae479c code and config review after rebase to current master
9 years ago
sebres 72f29e9061 asyncserver (asyncore) code fixed and test cases repaired (always delete temp files, wait for end of thread/server, etc)
9 years ago
sebres 770c219ab6 SetupTest should run at version of python currently installed (resp. active one), skip if started with another version.
9 years ago
sebres cf3cf27fa3 - filtering of test cases extended for method additionally to class (matches method only not whole class for regexp matched method name);
9 years ago
sebres 6faffe3201 test cases extended, code review (+ python 3.x compatibility);
9 years ago
Yaroslav Halchenko 0e61b7586a RF: use descriptive loop variable (oldticket) and matching associated variable suffixes (old)
9 years ago
Yaroslav Halchenko e2a68bb02d RF: make Jail new style class, avoiding multiple inheritance with object
9 years ago
Yaroslav Halchenko 78eb4d95eb RF: is_alive -> isAlive to stay consistent in camelCasing
9 years ago
sebres 59bf5013c0 - performance of fail2ban optimized
9 years ago
sebres 3540619a73 code review, test case extended;
9 years ago
sebres d23d103f96 code review and few new test cases
9 years ago
sebres db5ee0842a increase code coverage
9 years ago
sebres d22b2498d4 normalizing time config entries: use time abbreviation (str2seconds) for all time options such 'dbpurgeage', 'bantime', 'findtime', ex.: default '1d' instead '86400';
9 years ago
sebres dad4234beb The tricky bug fixed - last position of log file will be never retrieved (#795):
9 years ago
sebres 410f9d7c10 filter, datedetector, datetemplate: performance optimizing of combination datedetector.matchTime/getTime2, because early getTime search a template and call template.matchTime again (so the date parsing was really executed twice, now just once);
9 years ago
sebres 42199957d0 prevent completely read of big files first time (after start of service), initial seek to start time using half-interval search algorithm (see issue #795):
9 years ago
sebres 3cfdc5ecb3 test cases extended;
9 years ago
sebres a3e0cc9830 introduced string to seconds (str2seconds) for configuration entries with time;
9 years ago
Yaroslav Halchenko 26dd6d7425 Merge pull request #1258 from aleksandrs-ledovskis/feature/postfix-domain-not-found-failregex
9 years ago
Yaroslav Halchenko dfaf82d68a Changelog entry for PartOf in .service fix
9 years ago
Yaroslav Halchenko 9f15d02910 Merge pull request #1251 from fastest963/master
9 years ago
Yaroslav Halchenko edcbdf6eab Merge pull request #1264 from rbrownwsws/master
9 years ago
Yaroslav Halchenko 39d202b623 Merge pull request #1273 from yarikoptic/enh-log-matchtuple
9 years ago
Ross Brown 8d12dba245 Merge remote-tracking branch 'upstream/master'
9 years ago
Ross Brown 16aa2fa13e Updated ChangeLog to include new murmur jail.
9 years ago
Ross Brown ead2d509dc Updated 'murmur' filter to use new double-anchored regex based on @yarikoptic's suggestions.
9 years ago
Yaroslav Halchenko 61b2653f9e Merge pull request #1274 from yarikoptic/enh-new-sshd-too-many
9 years ago
Ross Brown fd36b058ce Changed usernames in sample log file for 'murmur' filter.
9 years ago
Ross Brown ba535826a8 Updated ChangeLog to include new murmur filter.
9 years ago
Yaroslav Halchenko 5d6cead996 ENH: sshd filter -- match new "maximum auth attempts exceeded" (Closes #1269)
9 years ago