DROP google
This commit is contained in:
parent
b088270ecb
commit
2c975ba4a8
11
DROP-google
Executable file
11
DROP-google
Executable 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
|
Loading…
Reference in a new issue