Update cloudflare.sh

This commit is contained in:
TommyTran732
2020-01-02 18:07:35 -05:00
committed by GitHub
parent e920626812
commit 06bcf33a42
+2 -2
View File
@@ -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