How to whitelist an IP in Fail2ban
First, edit the config file:
vi /etc/fail2ban/jail.conf
Then, check the line:
ignoreip =
Now add all the IPs you want. Each IP or IP range must be placed here separated by a space. Ex: 192.168.0.1 192.168.5.0/32
Save, and restart Fail2Ban:
service fail2ban restart