Add IgnoreIP prop to specify a local list of IP to prevent from being banned

tags/0.0.1
Daniel Berteaud 12 years ago
parent f81ad40949
commit 1848a6a869
  1. 3
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP

@ -17,6 +17,9 @@ unless (($fail2ban{FilterLocalNetworks} || 'disabled') eq 'enabled'){
}
}
# Add a local whitelist
push @ip, $_ foreach (split /[,;]/, ($fail2ban{'IgnoreIP'} || ''));
$OUT .= "ignoreip = " . join(" ", @ip);
}

Loading…
Cancel
Save