Yes,
thanks, yes thats true
but
when i add this for example to pyrex, this didnt
match.
So its
not possible to find any «regexeditor» that match with
fail2ban so that i can simulate this?
This also is a valid string, this match
on « Regex101 python « but not with fail2ban
- :\w+:\w+-\w+\w+\w+\w+\[<HOST>\]:\w+?w+?1.1
Sorry
i have not yet understood which editor i can use for
sim, or is fail2ban a separate unic regex Interpreter?
Thanks
for update
Surely
you need a <HOST> variable in that for f2b to
work. Something like:
NON-SMTP COMMAND
from.\[<HOST>\]:\d+ after
CONNECT:.GET./.HTTP/1.1
Normally you'd also expect some sort of timestamp in the
logs.
On 20/05/2024 12:37, Maurizio
Caloro via Fail2ban-users wrote:
Thanks
for your answer
Please,
after generate this syntax, no chance to include
this to Fail2ban.
From
4389 found 0 hits
[Appl PyRex]
NON-SMTP COMMAND
from.\[+.............\]:......after
CONNECT:.GET./.HTTP/1.1
NON-SMTP
COMMAND from [64.62.197.214]:13465 after CONNECT:
GET / HTTP/1.1
But
what are wrong here?
thanks
Use pyrex or any python
compatible one. Also be mindful of interpreting the
filter definitions in filter.d and using
fail2ban-regex as testing ground.
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users