diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP index d864e75..3b0674b 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP @@ -9,7 +9,7 @@ my @ip = ("127.0.0.1"); # Add hosts which can access the server-manager to the whitelist push @ip, $_ foreach (split /[,;]/, (${'httpd-admin'}{'ValidFrom'} || '')); -if (($fail2ban{FilterLocalNetworks} || 'disabled') eq 'enabled'){ +unless (($fail2ban{FilterLocalNetworks} || 'disabled') eq 'enabled'){ foreach my $net ($n->networks){ my $key = $net->key; my $mask = $net->prop('Mask');