diff --git a/cloudflare.sh b/cloudflare.sh index 9693c6f..ceb7954 100644 --- a/cloudflare.sh +++ b/cloudflare.sh @@ -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