• For our Swindon web design team
    Call today on 01793 239 239
  • We're here Monday to Friday
    from 8:00am to 6:00pm
  • Local web designers in
    Swindon, Wiltshire

How to whitelist an IP in Fail2ban on Debian Linux

Fail2Ban is used to protect servers against brute force attacks. Fail2ban uses iptables to block attackers, so, if we want to add a 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 separated here with a whitespace. Ex:


ignoreip =

The line should be added in the [DEFAULT] section of the file.

Save the file and restart Fail2Ban:

service fail2ban restart

What’s my IP address?

Your IP address is: Please copy and paste the numbers in bold above into your reply to the support request asking for your IP address.

Read More »