Created
June 4, 2020 15:01
-
-
Save parrazam/319262a7455ef955d2d341598d810f1c to your computer and use it in GitHub Desktop.
Fail2Ban jail local
This file contains 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
[sshd] | |
# To use more aggressive ssh modes set filter parameter "mode": | |
# normal (default), ddos, extra or aggressive (combines all). | |
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details. | |
#mode = normal | |
port = ssh | |
enabled = true | |
filter = sshd | |
ignoreip = 192.168.1.0/24 | |
banaction = iptables-multiport | |
bantime = 3600 | |
maxretry = 3 | |
logpath = %(sshd_log)s | |
backend = %(sshd_backend)s | |
action = sendnotif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment