Whitelisting An IP In Mod_Evasive

Discussion in 'ISPConfig 3 Priority Support' started by yupthatguy, Jun 5, 2021.

Tags:
  1. yupthatguy

    yupthatguy Member HowtoForge Supporter

    Hey there, I received an email from 'www-data' informing that my local ip, which I use to access my vbox host was blacklisted by mod_evasive.

    I've tried to whitelist my ip by editing the apache2 conf file and adding:
    Code:
    # nano /etc/apache2/apache2.conf
    
    DOSWhitelist XXX.XX.X.XX
    
    But it doesn't seem to work. Should I instead whitelist the IP through /etc/fail2ban/filter.d/apache-mod_evasive.local? (Or some other method)

    If so, how?
     
  2. yupthatguy

    yupthatguy Member HowtoForge Supporter

    I will answer my own question.. did a bit more searching.
    Edit:
    Code:
    #nano /etc/apache2/mods-enabled/evasive.conf
    Add:
    DOSWhitelist XXX.XX.X.XX
    
    UPDATE:
    I need to take a little egg to the face... my original whitelisting method was correct:
    Code:
    # nano /etc/apache2/apache2.conf
    
    DOSWhitelist XXX.XX.X.XX
    
    I just noticed another issue with modsecurity causing my current issues
     
    Last edited: Jun 5, 2021

Share This Page