From 27b9e93b0ddcda9bd7fb0d105d9581a942fa7a68 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Wed, 15 Apr 2020 10:54:43 -0400 Subject: [PATCH] reference nasties ipset for erlking and waldo --- .../files/erlking.asininetech.net.rules.v4 | 7 +------ .../files/waldo.asininetech.net.rules.v4 | 9 +-------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/ubuntu/roles/firewall-ruleset-deploy/files/erlking.asininetech.net.rules.v4 b/ubuntu/roles/firewall-ruleset-deploy/files/erlking.asininetech.net.rules.v4 index cd881ad..76fbbf7 100644 --- a/ubuntu/roles/firewall-ruleset-deploy/files/erlking.asininetech.net.rules.v4 +++ b/ubuntu/roles/firewall-ruleset-deploy/files/erlking.asininetech.net.rules.v4 @@ -2,12 +2,7 @@ :INPUT DROP :FORWARD DROP :OUTPUT ACCEPT --A INPUT -s 110.240.0.0/12 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 111.224.0.0/14 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 220.243.128.0/20 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 95.216.172.167/32 -m comment --comment "Seekport Crawler, aggressive" -j DROP --A INPUT -s 147.75.106.146/32 -m comment --comment "SearchAtlas.com SEO Crawler, doesn't respect robots.txt" -j DROP --A INPUT -s 216.244.66.229/32 -m comment --comment "moz.com SEO crawler" -j DROP +-A INPUT -m set --match-set nasties src -j DROP -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p icmp --icmp-type ping -j ACCEPT diff --git a/ubuntu/roles/firewall-ruleset-deploy/files/waldo.asininetech.net.rules.v4 b/ubuntu/roles/firewall-ruleset-deploy/files/waldo.asininetech.net.rules.v4 index c4fd58d..781c4b2 100644 --- a/ubuntu/roles/firewall-ruleset-deploy/files/waldo.asininetech.net.rules.v4 +++ b/ubuntu/roles/firewall-ruleset-deploy/files/waldo.asininetech.net.rules.v4 @@ -2,14 +2,7 @@ :INPUT DROP :FORWARD DROP :OUTPUT DROP --A INPUT -s 173.244.135.0/24 -m comment --comment "infegy data collection" -j DROP --A INPUT -s 103.114.191.0/24 -m comment --comment "1776 Solutions, kiwifarms" -j DROP --A INPUT -s 110.240.0.0/12 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 111.224.0.0/14 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 220.243.128.0/20 -m comment --comment "Bytespider crawler, aggressive" -j DROP --A INPUT -s 95.216.172.167/32 -m comment --comment "Seekport Crawler, aggressive" -j DROP --A INPUT -s 147.75.106.146/32 -m comment --comment "SearchAtlas.com SEO Crawler, doesn't respect robots.txt" -j DROP --A INPUT -s 216.244.66.229/32 -m comment --comment "moz.com SEO crawler" -j DROP +-A INPUT -m set --match-set nasties src -j DROP -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT