Update cloudflare.sh
This commit is contained in:
+2
-2
@@ -15,13 +15,13 @@ if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
|
||||
wget https://www.cloudflare.com/ips-v4
|
||||
wget https://www.cloudflare.com/ips-v6
|
||||
|
||||
for ips in ips-v4;
|
||||
for ips in `cat ips-v4`;
|
||||
do
|
||||
ufw allow from $ips to any proto tcp port 80
|
||||
ufw allow from $ips to any proto tcp port 443
|
||||
done
|
||||
|
||||
for ips in ips-v6;
|
||||
for ips in `cat ips-v4`;
|
||||
do
|
||||
ufw allow from $ips to any proto ipv6 port 80
|
||||
ufw allow from $ips to any proto ipv6 port 443
|
||||
|
||||
Reference in New Issue
Block a user