Commit graph

5841 commits

Author SHA1 Message Date
repcsi
199759f0ba added pf[protocol=all] options as recommended by sebres 2023-12-10 11:20:39 +01:00
sebres
44fa2959e7 fixes gh-3635: avoid sporadic error in pyinotify backend if pending file deleted in other thread; restore correct logging in tests 2023-11-22 20:16:53 +01:00
sebres
5d9817728d fixes multi-threaded issue on __pending dict (caused due to missing lock on __pending dict);
an entry can be deleted by `_delPending` with 1st thread, while 2nd thread in filter doing `_checkPending` where it still got this key in iterator, but later fails in the cycle because `__pending[path]` may be deleted by 1st thread in-between;
closes #3635
2023-11-22 20:05:02 +01:00
sebres
4d603f9726 added missing inherited tearDown invocation 2023-11-22 20:01:31 +01:00
sebres
cdb6607261 remove double call of inherited setup in test cases;
previously caused that after that no restore of log-handler takes place in `tearDown` later, so after that tests it remains by `LogCaptureTestCase._MemHandler`, so every future logged message disappear in nirvana;
partially fixes #3635
2023-11-22 20:00:50 +01:00
Yaroslav Halchenko
22ce0c0536
Merge pull request #3630 from yarikoptic/enh-codespell
Add codespell: workflow, config and fix typos it finds
2023-11-22 10:53:48 -05:00
Sergey G. Brester
9fc754ceea
Merge pull request #3633 from brunobell/patch-1
Update Arch Linux package URL in RELEASE
2023-11-22 12:57:55 +01:00
Dash Lu
0e27811818 Update Arch Linux package URL in RELEASE 2023-11-21 23:05:54 +08:00
Yaroslav Halchenko
8ef0d3c7a9 [DATALAD RUNCMD] run codespell throughout fixing typo automagically
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
2023-11-18 10:04:04 -05:00
Yaroslav Halchenko
81b2eb32d6 Add pragma to ignore a codespell-detected typoin postfix.conf 2023-11-18 10:03:50 -05:00
Yaroslav Halchenko
5e9060a613 Add skipping of codespell-ignore annotated lines 2023-11-18 09:56:18 -05:00
Yaroslav Halchenko
b3bcd0a0f2 Filter substition -> substitution
I think it is just a filter for testing so should be safe to rename
2023-11-18 09:55:24 -05:00
Yaroslav Halchenko
e2ede1a43e Further adjust regex since apparently \b would not match at the beginning of e.g. [Uu]ser 2023-11-18 09:55:24 -05:00
Yaroslav Halchenko
dcb0177d96 Ignore URLs and few other specific things, group better in regex 2023-11-16 11:07:47 -05:00
Yaroslav Halchenko
e96ecf78c1 [DATALAD RUNCMD] Do interactive fixing of some ambigous typos
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2 ./files/fail2ban-openrc.conf ./fail2ban/tests/fail2banclienttestcase.py",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
2023-11-16 10:59:16 -05:00
Yaroslav Halchenko
3b3fcde2e6 Some ignores for codespell 2023-11-16 10:58:39 -05:00
Yaroslav Halchenko
698cba5708 Remove .project for Eclipse added originally by Cyril but IMHO never used since never tuned 2023-11-16 10:55:20 -05:00
Yaroslav Halchenko
4b4c728558 Add rudimentary codespell config 2023-11-16 10:42:20 -05:00
Yaroslav Halchenko
e20bd9402b Add github action to codespell master on push and PRs 2023-11-16 10:42:20 -05:00
Sergey G. Brester
eed319e896
gh-3604: filter.d/slapd.conf - switched to single-line processing
closes gh-3604
2023-10-18 16:06:56 +02:00
Sergey G. Brester
132c719386
Merge pull request #3603 from alexdrupal/patch-1
mysqld-auth: no suffix in message (mariadb 10.3 log format)
2023-10-16 12:05:42 +02:00
Sergey G. Brester
183f805ae3
amend 2023-10-16 11:41:05 +02:00
Sergey G. Brester
7931b67325
mysqld-auth.conf: better RE, optional suffix, non-capturing groups 2023-10-16 11:35:53 +02:00
Aliaksandr Yurchyk
162f0c4b6c
Update mysqld-auth test file 2023-10-16 01:45:43 +03:00
Aliaksandr Yurchyk
c55e9949dc
Fix issue with Mariadb 10.3 failed message 2023-10-16 01:35:15 +03:00
Sergey G. Brester
8eac5f597a
Merge pull request #3579 from stweil/travis
Remove Travis CI (no longer working)
2023-09-25 12:43:56 +02:00
Stefan Weil
cd2ba0a3ba Remove Travis CI (no longer working)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2023-09-24 20:12:19 +02:00
Sergey G. Brester
f8f8c046a2
Merge pull request #3469 from vitkabele/routeros-auth
New filter: routeros-auth.conf
2023-09-02 18:56:04 +02:00
sebres
35af8b6d5d fixes DNS resolve related tests on systems without IPv6 support (considering that --no-network simulate resolving example.com via cache) 2023-08-23 16:30:42 +02:00
sebres
f8622c6f92 fixes IPAddr.searchIP for IPv6 (IPv4 group scanning plain IPv6 is None) 2023-08-23 16:30:39 +02:00
Sergey G. Brester
db3b410a60
Merge pull request #3564 from nodiscc/ipset-maxelem-argument
action.d/*ipset*: make maxelem ipset option configurable through banaction arguments
2023-08-23 12:41:19 +02:00
Sergey G. Brester
f7ee023661
ChangeLog: gh-3564 2023-08-23 12:38:12 +02:00
nodiscc
77f80e8c3f
action.d/*ipset*: make maxelem ipset option configurable through banaction arguments
- previously there was no way to override this value and ipsets would stop being updated when full (Hash is full, cannot add more elements)
- preserve ipset's default value of 65536
- update tests
- Closes #3549
2023-08-23 12:19:07 +02:00
sebres
bbca81f34c splitwords (used by ignoreip etc) considers now any kind of space as valid separator (also tabs) besides comma;
closes gh-3562
2023-08-22 14:06:04 +02:00
Sergey G. Brester
bcaf1e714e
Merge pull request #3557 from neofright/neofright-patch-1
Update FILTERS
2023-08-15 12:18:08 +02:00
neofright
6afaf35263
Update FILTERS 2023-08-14 20:23:26 +00:00
Sergey G. Brester
3e6a60f940
Merge pull request #3539 from Strykar/patch-1
Make ignorecommand help clearer
2023-07-14 00:00:22 +02:00
Sergey G. Brester
76f6bc81bc
small amend restore groff format (\f escape sequence) 2023-07-13 23:59:28 +02:00
Avinash H. Duduskar
c38f6654f7
Make ignorecommand help clearer 2023-07-14 00:51:43 +05:30
Sergey G. Brester
48c91dfb6b
Merge pull request #3532 from lade-odoo/master-restore_bans_with_full_ticket_info-lade
Restore bans from the database with full ticket information
2023-06-22 13:38:53 +02:00
Sergey G. Brester
7bfa133208
small amend: lets use lower level API for restored tickets too 2023-06-22 13:36:18 +02:00
Laurent Desausoi
3546071aa5 Restore bans from the database with full ticket information
In the case where we use the `ignoreCommand` with information from the
ticket, we want these informations to also be included when restoring
the bans from the database (the ticket may no longer be required to be
banned).
2023-06-22 09:50:43 +02:00
sebres
226a59445a merge branch gh-2690--mig2to3 : fail2ban is python 3.x based now;
closes gh-2690
2023-06-16 17:02:27 +02:00
sebres
9c5f6eea76 version bump (master / 1.1 is python 3.x based now) 2023-06-16 16:59:22 +02:00
sebres
99ff701678 remove support of python 2.x 2023-06-16 16:29:08 +02:00
sebres
03d7c92ae8 2to3 2023-06-16 15:23:41 +02:00
sebres
e2c4982417 Merge branch 'fix-gh-3485', filter.d/sshd.conf:
- avoid double counting for "maximum authentication attempts exceeded" (gh-3502)
  - message "Disconnecting ... Too many authentication failures" is not a failure anymore
2023-06-13 18:58:47 +02:00
sebres
101d6923e3 ChangeLog (gh-3485) 2023-06-13 18:57:05 +02:00
sebres
eebef0089c avoid double counting for "maximum authentication attempts exceeded" ("Disconnecting ..." is no failure anymore, now it's helper only);
closes gh-3485
2023-06-13 18:49:26 +02:00
Sergey G. Brester
66e195b0f3
jail.conf: comment only (time abbr format), no function changes
closes gh-3522
2023-06-10 14:15:52 +02:00