Whitelist IP in FAil2ban

Fail2ban uses iptables to block ips. If we want to permanently whitelist a particular ip, you need add in the following file
vi /etc/fail2ban/jail.conf

Now check the line

ignoreip =

Add the ips that you want. Several addresses can be defined using space separator.

ignoreip = 1.2.3.4  192.x.x.1

Advertisements