blob: aeb2751b33a6f4ea18c8895b1e23baaf642b6e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Ansible controlled filename: /etc/fail2ban/jail.d/60_sshd.jail
# Source: ansible bgstack15-fail2ban/files/sshd.jail
# Date: 2016-06-23
# Reference: Ubuntu 16.04 fail2ban package sshd jail
# NOTE: This file is managed via Ansible: manual changes will be lost
[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
sendmail-whois[name=SSH, dest=root, sender=fail2ban@example.com]
logpath = %(sshd_log)s
maxretry = 5
ignoreip = 203.0.193.232/24
|