Categories
Security Ubuntu

Block failed OpenVPN logins with fail2ban

The following configuration successfully bans failed OpenVPN authentication attempts on Ubuntu 12.04 LTS. OpenVPN has been configured to authenticate against local password database via PAM. jail.conf [text] [openvpn] enabled = true port = openvpn protocol = udp filter = openvpn logpath = /var/log/openvpn.log maxretry = 4 [/text] /etc/fail2ban/filter.d/openvpn [text] [INCLUDES] before = common.conf [Definition] _daemon […]