Fail2ban install
From wikinotes
Archlinux
pacman -S fail2ban
FreBSD
PF is a firewall that is built into the BSDs. You *can* run PF and fail2ban within a jail (need to start PF on host, then also in jail), but the pf rules are global (not local to the jail only), so you may as well do it on the HOST system.
If an IP gets blocked in a jail, it's blocked on the host. Using 'pfctl -t <talbename> -T show' demonstrates the shared rules. Instead, I recommend setting up PF on the host, and within your pf.conf you can restrict access to only the VMs you want to restrict access on.
pkg install py27-fail2ban#### /etc/rc.conf pf_enable="YES" pflog_enable="YES" fail2ban_enable="YES"