Update cloudflare.sh

This commit is contained in:
TommyTran732
2020-01-03 03:49:00 -05:00
committed by GitHub
parent d4454bcbe4
commit 0d5aac5950
+2 -2
View File
@@ -34,8 +34,8 @@ elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" =
wget https://www.cloudflare.com/ips-v6
for ips in `cat ips-v4`;
do
firewall-cmd --add-rich-rule='rule family="ipv4" source address="$ips" port port="80" protocol="tcp" accept'
firewall-cmd --add-rich-rule='rule family="ipv4" source address="$ips" port port="443" protocol="tcp" accept'
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="$ips" port port="80" protocol="tcp" accept'
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="$ips" port port="443" protocol="tcp" accept'
done
for ips in `cat ips-v6`;