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

    Secure Your Online Data and Privacy

    5 Ways to Secure Your Online Data and Privacy in 2023

    Preventing SQL injection attacks with prepared statements in MySQL

    How to block bad bots using .htaccess

    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
    • Setting and Getting the Default Timezone in Python
    • What is Media Access Control (MAC) Address?
    • What is Cross-Site Scripting (XSS)?
    • What is Content Security Policy (CSP)?
    • A User’s Guide to Understanding Redirection Operators in Bash
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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