From: Raphaƫl Gertz Date: Fri, 21 Apr 2017 09:25:46 +0000 (+0200) Subject: Update ips X-Git-Tag: 0.2 X-Git-Url: https://git.rapsys.eu/tools/commitdiff_plain/a60d4d72096b607d073b30dbb2ab466fd4c25117?ds=inline Update ips --- diff --git a/blacklist b/blacklist index a31beee..ec10c88 100755 --- a/blacklist +++ b/blacklist @@ -10,7 +10,7 @@ my %ip4s = (); my %ip6s = (); my @blrule4s = (); my @blrule6s = (); -my $whitelist = qr/^(?:127.|85.68.182.45|195.25.233.49|94.23.226.160|::1|2001:41d0:2:65a0:)/; +my $whitelist = qr/^(?:127.|5.9.143.173|85.68.182.45|195.25.233.49|::1|2a01:4f8:190:22a6:)/; my @userlist = ('rapsys'); # Extract sshd.service scan @@ -42,8 +42,8 @@ open (my $fh, '<', '/etc/shorewall/blrules') or die "Can't open < /etc/shorewall @blrule4s = map { chomp($_); if (/^#/) { $_; } else { (); } } <$fh>; # Prepend header +push @blrule4s, "WHITELIST\tnet:5.9.143.173\tall"; push @blrule4s, "WHITELIST\tnet:85.68.182.45\tall"; -push @blrule4s, "WHITELIST\tnet:94.23.226.160\tall"; push @blrule4s, "WHITELIST\tnet:195.25.233.49\tall"; # Build blacklist