From ece16d115994b9a28091827a8ae80aeef2b141aa Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 3 May 2013 11:17:56 +0200 Subject: [PATCH] Whitelist the local IP of the server itself --- root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 22b153a..15519b6 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/05IgnoreIP @@ -6,7 +6,7 @@ use Net::IPv4Addr; my $n = esmith::NetworksDB->open_ro() || die "Couldn't open networks DB\n"; -my @ip = ("127.0.0.0/8"); +my @ip = ("127.0.0.0/8", $LocalIP); # Add hosts which can access the server-manager to the whitelist foreach (split /[,;]/, (${'httpd-admin'}{'ValidFrom'} || '')){