https://bugs.contribs.org/show_bug.cgi?id=10638
Daniel B. <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
--- Comment #2 from Daniel B. <[email protected]> ---
Can't reproduce. I can set IP addresses withtout any CIDR notation, eg
fail2ban=service
FilterValidRemoteHosts=enabled
IgnoreIP=212.129.1.226,62.147.211.21
Mail=enabled
status=enabled
And I get a correct,a nd working jail.conf
[DEFAULT]
ignoreip = 127.0.0.0/8 [...] 212.129.1.226/32 62.147.211.21/32
This is done in /etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP in
this bloc
# Add a local whitelist
foreach (split /[,;]/, ($fail2ban{'IgnoreIP'} || '')){
my $addr = $_;
$addr .= '/32' unless ($addr =~ m/\/\d{1,2}$/);
my ($ip,$bits) = Net::IPv4Addr::ipv4_parse("$addr");
push @ip, "$ip/$bits";
}
/32 is appended for IP not using a CIDR notation, so we can then use ipv4_parse
easily.
Please, show me the output of
db configuration getprop fail2ban IgnoreIP
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/