Commit Graph

6036 Commits (882e6d5e0011fe12bac8a356caea0394bc19b26c)

Author SHA1 Message Date
sebres 882e6d5e00 `filter.d/exim.conf` - mode `aggressive` extended to catch dropped by ACL failures, e.g. "ACL: Country is banned" 2025-02-10 17:30:07 +01:00
Sergey G. Brester 2d736ad755 small amend 2025-01-31 19:54:24 +01:00
Sergey G. Brester a44c8dc3ec
Update FILTERS: clarify and improve docu, update some urls, etc
(related #3934)
2025-01-31 19:51:29 +01:00
Sergey G. Brester 6fb3532c45
Merge pull request #3931 from brianjmurrell/patch-2
`from '[^']*'` is not always present …
2025-01-30 14:06:00 +01:00
sebres a1268f37c3 amend (move ChangeLog entry) 2025-01-30 14:04:00 +01:00
sebres b55c20594e `paths-common.conf`: changed default `mysql_log` path (default `logpath` of `mysqld-auth` jail without maintainer overrides); adjusted comments (`log_error_verbosity = 3` instead of `log-warnings = 2`)
closes gh-3932
2025-01-30 14:00:43 +01:00
Sergey G. Brester 6d3308ecb4
Merge pull request #2702 from pburndorfer/master
New openvpn jail
2025-01-30 13:16:44 +01:00
Brian J. Murrell b8ab346257
Merge branch 'fail2ban:master' into patch-2 2025-01-29 19:36:54 -05:00
sebres d2c60a168f combine several regexes to single RE 2025-01-30 01:13:49 +01:00
sebres e1fc569291 normalize jail (defaults, etc); added missing tests for all REs; common prefix for failregex, no catch-alls, etc 2025-01-30 01:13:48 +01:00
Philipp Burndorfer 95710e9dac Adapted changelog. 2025-01-30 01:13:47 +01:00
Philipp Burndorfer 88385eb6c1 New openvpn jail. 2025-01-30 01:13:46 +01:00
sebres 7a5e2c8419 Merge branch 'example-com-ips': fixed test-suite (adjusted fqdn/ips, codespell) 2025-01-30 01:12:37 +01:00
sebres 8c6d7dc12f GHA main.yml: update python versions ('3.14.0-alpha.4') 2025-01-30 01:09:20 +01:00
sebres 5b6c13f0aa example.com changes the IPs, again... additionally it got more IPs, which look unstable now (depends on resolver), so replaced with fail2ban.org, that seems to resolve to single IPv4 and IPv6 (can be adjusted later for something more persistent) 2025-01-30 01:05:30 +01:00
sebres 155a0855f2 silence codespell 2025-01-29 21:59:35 +01:00
Brian J. Murrell eb1fc5b261
Add test line
Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
2025-01-28 13:22:04 -05:00
Brian J. Murrell 325613a8f8
from '[^']*' is not always present …
In the message from asterisk.

Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
2025-01-28 13:09:29 -05:00
sebres 9dde3d019e typo, shall be negative lookbehind ignoring escaped open parenthesis, like `\(?iu)` 2024-12-29 20:27:03 +01:00
sebres a796cc9b91 `filter.d/dropbear.conf`: failregex extended to match different format of "Exit before auth" message;
closes gh-3791
2024-12-27 16:43:33 +01:00
Sergey G. Brester 4b6f69a14a
Merge pull request #3597 from MichaIng/patch-1
Fix Dropbear filter when logging to STDOUT
2024-12-27 16:16:34 +01:00
MichaIng eb8b44370a
Make Dropbear regex more compatible and simpler
Dropbear uses `strftime` `"%b %d %H:%M:%S` to print its timestamps, hence we know the day and time format, but the month could be localized. We hence allow any 3 word characters for it, and additionally simplify the day and time pattern into a single group.

Signed-off-by: MichaIng <micha@dietpi.com>
2024-12-27 14:00:36 +07:00
Sergey G. Brester b7b1fff53c
Update ChangeLog 2024-12-27 14:00:35 +07:00
Sergey G. Brester 62aeb55b63
dropbear test: added description 2024-12-27 13:59:36 +07:00
MichaIng dd9f359f5c
Fix Dropbear filter when logging to STDOUT
Since Debian Bookworm, the distribution ships Dropbear with a native systemd service instead of the default upstream init.d service, and accordingly uses the `-F` and `-E` flags, to run it in foreground and have it logging to STDOUT instead of syslog.

As usual, timestamps and also the PID are now included by the log message emitted by Dropbear, in addition to the systemd journal log prefix.

The Dropbear filter hence does not match anymore. This commit adds the PID and timestamp as optional pattern between prefix and fail log text, to support Dropbear on Debian Bookworm and newer (and likely new versions of other distros) without breaking the old pattern when running Dropbear without `-E` flag.

Additionally, for performance reasons, this commit adds a `journalmatch` entry, matching Debian's and Fedora's `dropbear.service` with `dropbear` executable/identifier, the most likely match for a Dropbear systemd service.

Signed-off-by: MichaIng <micha@dietpi.com>
2024-12-27 13:59:35 +07:00
sebres 89b5f3bb1e `filter.d/sshd.conf`: `ddos` and `aggressive` modes, regex extended for timeout before authentication (optional connection from part);
closes gh-3907
2024-12-26 14:24:15 +01:00
Sergey G. Brester 51358e1587
Merge pull request #3636 from szepeviktor/typos
Fix more typos
2024-12-21 19:31:54 +01:00
Jesús Cea d89ded39b0 Trivial typo in "jail.conf.5" 2024-12-21 19:28:55 +01:00
Sergey G. Brester b6aebc333c
Merge pull request #3903 from pano9000/docs_status-flavor
docs: explicitly list supported status flavors
2024-12-21 18:43:32 +01:00
Panagiotis Papadopoulos d38f233e91 docs: explicitly list status flavors 2024-12-20 08:42:19 +01:00
Sergey G. Brester a6ca6e2a26
Merge pull request #3897 from pano9000/master
docs: Remove outdated link to sourcecodebrowser
2024-12-16 13:09:23 +01:00
Panagiotis Papadopoulos a57a768cb8 docs: Remove outdated link to sourcecodebrowser 2024-12-14 02:04:15 +01:00
sebres 4151eeccfe fixes mistaken usage of ignoreregex from filter, if ignoreregex is supplied with command line;
also avoid after-effect with "IndexError: list index out of range" from onIgnoreRegex (the lists of REs are different in filter and fail2banregex);
closes gh-3895
2024-12-11 21:55:20 +01:00
sebres 91c27d0600 `filter.d/freeswitch.conf`: bypass some new info in prefix before [WARNING] (changed default `_pref_line`);
closes gh-3143
2024-12-04 16:56:23 +01:00
sebres 12ff98027f GHA main.yml: update python versions ('3.13.0', '3.14.0-alpha.1') 2024-11-07 19:32:31 +01:00
sebres eb4731d8b1 action.d/*-ipset.conf: workaround sporadic failures by stop if destroying ipset too fast (sleep a bit in error case and repeat);
closes gh-3624
2024-11-07 19:28:53 +01:00
sebres 0bf1106d72 manually added attempts inform the observer module (take the known ban-count of bad IPs into account);
closes gh-3845
2024-10-08 13:34:19 +02:00
Sergey G. Brester 89970d2e3e
Merge pull request #1351 from AntagonistHQ/csf
add support for the CSF firewall
2024-09-29 10:01:58 +02:00
Sergey G. Brester 363c0d5fd0
nftables.conf: fixed comment (since 7f1b578af4, gh-488 actioncheck would be never invoked in regular case) 2024-09-07 13:15:45 +02:00
Sergey G. Brester 1ea8a6de58
Merge pull request #3826 from thomas-333/patch-1
Update apprise.conf: typo
2024-09-02 11:32:05 +02:00
thomas-333 44bd87951e
Update apprise.conf
Correct typo. "as" should read "has"
2024-09-02 10:17:10 +01:00
Sergey G. Brester 3361fb0805
Merge pull request #3823 from orlitzky/after-nftables
files/fail2ban-openrc.init.in: start after nftables
2024-08-25 00:28:25 +02:00
Michael Orlitzky 9e31cfc1f1 files/fail2ban-openrc.init.in: start after nftables
The "after iptables" clause in the OpenRC service script's depend()
function causes fail2ban to start after iptables, if iptables is
scheduled to start. Here we add "after nftables" as well: nftables is
the successor to iptables, and fail2ban supports it out-of-the-box.
If nftables is scheduled to start, we want to wait until it's done
before starting fail2ban.
2024-08-24 11:59:59 -04:00
Sergey G. Brester be734991eb
main.yml: update python versions ('3.13.0-rc.1', '3.14.0-alpha.0') 2024-08-23 20:20:55 +02:00
Sergey G. Brester fda37fac81
main.yml: update actions/setup-python to v5 2024-08-23 20:15:55 +02:00
sebres 47e995cb57 Merge branch 'gh-2756': new jail option `skip_if_nologs` to ignore jail if no `logpath` matches found, fail2ban continue to start with warnings/errors, thus other jails become running 2024-08-23 20:05:46 +02:00
sebres 2950e41186 man/jail.conf.5: docu for skip_if_nologs 2024-08-23 15:22:00 +02:00
sebres 78af48862f new jail option `skip_if_nologs` to ignore jail if no `logpath` matches found, fail2ban continue to start with warnings/errors, thus other jails become running;
closes gh-2756
2024-08-23 12:16:08 +02:00
sebres 54c0effceb filter.d/sshd.conf: amend to #3747/#3812 (new ssh version would log with `_COMM=sshd-session`) 2024-08-11 12:10:12 +02:00
sebres c769046a1f Revert "`filterd./sshd.conf`: fixed journalmatch (sshd.service seems to be renamed to ssh.service)" - it'd patched in debian branch.
This reverts commit 6fce23e7ba.
2024-08-11 11:55:39 +02:00