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

Author: vishnulinux

Linux admin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s