Score:0

fail2ban: how to combine multiple failregex?

cn flag

I'm having problems with adding multiple failregex lines in my jail.local file. It works if I have one line but doesn't work if I have two.

This is my my jail.local config:

[sshd]
enabled = true
logpath = %(sshd_log)s
port = 22
banaction = iptables-multiport
mode = aggressive
failregex = %(known/failregex)s
            ^Bad protocol version identification '.*' from <HOST>
failregex = %(known/failregex)s 
            ^runcloud\[\d+\]: echo: http: TLS handshake error from <ADDR>:\d+
Score:0
cn flag

Figured it out, remove the second failregex = %(known/failregex)s:

failregex = %(known/failregex)s ^Bad protocol version identification '.*' from ^runcloud[\d+]: echo: http: TLS handshake error from :\d+

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.