Created
February 22, 2019 07:31
-
-
Save sparse91/2d56227ba1efd10b0c3aa13b1e9281a2 to your computer and use it in GitHub Desktop.
Fail2Ban filter for sslh demultiplexed ssh - Doesn't (and cannot) detect auth errors, but many connection attempts from the same origin is reason enough to block - Works on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sslh-ssh] | |
enabled = true | |
filter = sslh-ssh | |
maxretry = 10 | |
backend = systemd | |
bantime = 1w | |
action = firewallcmd-rich-rules[name=sslh,port="443"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INCLUDES] | |
[DEFAULT] | |
[Definition] | |
failregex = ^.+ sslh\-select\[.+\]: ssh:connection from <HOST>:.+ to .+ forwarded from .+ to .+:ssh\s*$ | |
journalmatch = _SYSTEMD_UNIT=sslh-select.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment