Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Security»How to Whitelist an IP in fail2ban on Ubuntu & Debian

    How to Whitelist an IP in fail2ban on Ubuntu & Debian

    By RahulOctober 19, 20191 Min Read

    Fail2ban is a useful application to protect servers against brute force attacks. It reads application logs and banned IPs detected as attackers. Fail2ban can be the program to ban an IP temporarily or permanent. You can also whitelist any specific IP address in whitelist to never block by fail2ban. This tutorial will help you whitelist an IP in fail2ban in Ubuntu, Debian, and LinuxMint Linux systems.

    Advertisement

    Whitelist IP in Fail2ban

    First of all, Make a local copy of jail.conf and edit it. In Debian based systems fail2ban configuration files are stored under /etc/fail2ban directory.

    cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
    vi /etc/fail2ban/jail.local
    

    Now, add your IP address under ignoreip option inside the DEFAULT section. The multiple IPs must be seprated with a white space. For example:

    [DEFAULT]
    
    ignoreip = 192.168.10.100 192.168.2.0/32
    

    After adding your IP, save the file and restart fail2ban service:

    systemctl restart fail2ban
    

    All done!

    fail2ban
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Open Port in Linux

    How to Install and Configure Fail2ban on Debian 11

    Securing SSH Server in Linux

    How To Secure SSH Server

    View 1 Comment

    1 Comment

    1. Weslley on November 10, 2019 10:39 pm

      Amazing work and Super blog!

      but its difficult to leave a comment…

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • tail Command in Linux with Examples
    • What is a Orphan Process in Unix/Linux
    • How To Display Warning Message to Unauthorized SSH Access
    • How to Set a Custom SSH Login Banner and MOTD
    • Understanding Reverse DNS: What it is and Why it Matters?
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.