DROP google

This commit is contained in:
Jeff Moe 2024-09-09 10:38:12 -06:00
parent b088270ecb
commit 2c975ba4a8

11
DROP-google Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
wget -O /tmp/goog.txt https://www.gstatic.com/ipranges/goog.txt
grep -v "::" /tmp/goog.txt | sort -V > /tmp/goog-ipv4.txt
for i in `cat /tmp/goog-ipv4.txt `
do echo "-A INPUT -p tcp -s $i -j DROP"
done > /tmp/goog-ipv4-DROP.txt
cat /tmp/goog-ipv4-DROP.txt