From 158eda78e3ea87b4626680c2234e469df6b6ba4a Mon Sep 17 00:00:00 2001 From: petroskaridis Date: Fri, 5 Feb 2021 13:25:39 +0000 Subject: [PATCH] Delete 'worker_ddos_firewall.sh' --- worker_ddos_firewall.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 worker_ddos_firewall.sh diff --git a/worker_ddos_firewall.sh b/worker_ddos_firewall.sh deleted file mode 100644 index a1a4d9e..0000000 --- a/worker_ddos_firewall.sh +++ /dev/null @@ -1,23 +0,0 @@ -sudo apt update -sudo apt upgrade -y -#Find worker1 IP -worker1=$(ifconfig|grep inet|sed -n lp|awk "{print \$2}") -clear -sudo iptables -F -echo "2 sec ICMP packet sniffing" -sleep 2s -sudo timeout 2s tcpdump -i eth0 icmp $worker1 -sleep 2s -echo "New iptables rules" -#clean iptables rules from previous script runs -sudo iptables -X -sudo iptables -N icmp_flood -sudo iptables -A INPUT -p icmp -j icmp_flood -#limit icmp_flood to 1 packets per second -sudo iptables -A icmp_flood -m limit --limit 1/s --limit-burst 3 -j RETURN -sudo iptables -A icmp_flood -j DROP -sleep 2s -echo "2 sec ICMP packet sniffing after iptables config" -sleep 2s -sudo timeout 2s tcpdump -i eth0 icmp $worker1 -