How to whitelist an IP in Fail2ban on Debian Wheezy

Want to support HowtoForge? Become a subscriber!
Submitted by oufcomm (Contact Author) (Forums) on Wed, 2014-08-27 08:45. :: ISPConfig | Linux | Networking | Security

Fail2Ban is used to protect servers against brute force attacks. Fail2ban uses iptables to block attackers, so, if we want to add permanent IP address and never be blocked, we must add it in the config file.

First, edit the config file :

vi /etc/fail2ban/jail.conf

Then, check the line :

ignoreip =

Add now add all ip you want. Each IP or range IP must be placed here with a space. Ex:

Save. And restart Fail2Ban:

service fail2ban restart

That's all.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.