Firewalld rules for cloudflare CDN IPs (Red Hat, CentOS, Fedora)

2020-09-15

#!/bin/bash

curl https://www.cloudflare.com/ips-v4 > .ips-v4
curl https://www.cloudflare.com/ips-v6 > .ips-v6

firewall-cmd --new-zone=cloudflare --permanent
firewall-cmd --reload

for i in `<.ips-v4`; do firewall-cmd --zone=cloudflare --add-source=$i; done
for i in `<.ips-v6`; do firewall-cmd --zone=cloudflare --add-source=$i; done

firewall-cmd --zone=cloudflare --add-port=80/tcp
firewall-cmd --zone=cloudflare --add-port=443/tcp
serverrhelcentosfedora

Rojen Zaman

Anarchist | GnuPG: 0x9089BB25

Unix System V Release 4 Cake Ova File

git yeni projeyi eski projeye merge etmek