Here's my /etc/fail2ban/jail.local for reference. It only operates on ssh, blocks you after 3 failed attempts for 1 hour:
grep -v -e "^#" -e "^$" /etc/fail2ban/jail.local
[DEFAULT]
ignoreip = 127.0.0.1/8 77.172.73.184
bantime = 3600
maxretry = 3
backend = auto
destemail =
[email protected]...