Skip to content

How to add "http: TLS handshake error" to ban list #3468

Answered by sebres
openbayou asked this question in Q&A
Discussion options

You must be logged in to vote

Well, I'm unsure why you assign this log messages to sshd, where it is obviously runcloud (and probably you'd need to protect http port (80,443) instead of sshd port (22).

Anyway, if you nevertheless need to extend sshd's failregex, you would need to match the string starting from runcloud ..., because timestamp would be captured by datepattern and server part by prefregex of sshd-filter, so it'd be something like that:

[sshd]
failregex = %(known/failregex)s
            ^runcloud\[\d+\]: echo: http: TLS handshake error from <ADDR>:\d+

to test it with fail2ban-regex try this:

# replace systemd-journal with log-filename if it file-related jail:
fail2ban-regex systemd-journal 'sshd[failrege…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@openbayou
Comment options

@sebres
Comment options

@sebres
Comment options

@openbayou
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants