Skip to content

Instantly share code, notes, and snippets.

@sumonst21
Created February 20, 2025 20:55
Show Gist options
  • Save sumonst21/30394e709f887a72a5f51e3eb7ed3bae to your computer and use it in GitHub Desktop.
Save sumonst21/30394e709f887a72a5f51e3eb7ed3bae to your computer and use it in GitHub Desktop.
104.28.37.12/32
104.28.37.13/32
104.28.37.14/32
104.28.37.15/32
104.28.37.16/32
104.28.43.4/32
104.28.43.5/32
104.28.43.6/32
104.28.43.7/32
104.28.43.8/32
104.28.66.0/32
104.28.66.1/32
104.28.66.2/32
104.28.66.3/32
104.28.66.4/32
104.28.69.0/32
104.28.69.1/32
104.28.69.2/32
104.28.69.3/32
104.28.69.4/32
104.28.117.0/32
104.28.117.1/32
104.28.117.2/32
104.28.117.3/32
104.28.117.4/32
104.28.120.0/32
104.28.120.1/32
104.28.120.2/32
104.28.120.3/32
104.28.120.4/32
2606:54c0:480::/45
2606:54c3:0:cc9::/64
2a09:bac2:480::/45
2a09:bac3:480::/45
104.28.208.81/32
104.28.208.82/32
104.28.208.83/32
104.28.208.84/32
104.28.208.85/32
104.28.208.86/32
104.28.208.87/32
104.28.208.88/32
104.28.240.81/32
104.28.240.82/32
104.28.240.83/32
104.28.240.84/32
104.28.240.85/32
104.28.240.86/32
104.28.240.87/32
104.28.240.88/32
2a09:bac1:b00:10::/64
2a09:bac1:b20:10::/64
2a09:bac1:b40:10::/64
2a09:bac1:b60:10::/64
2a09:bac5:498::/45
2a09:bac6:498::/45
@sumonst21
Copy link
Author

sumonst21 commented Feb 20, 2025

source: https://api.cloudflare.com/local-ip-ranges.csv
usage:

curl -s https://gist.githubusercontent.com/sumonst21/30394e709f887a72a5f51e3eb7ed3bae/raw/cfcb1cde0f62163ed7c34a76858639b4e11ba3e5/cf-ips-bd-c.txt | while IFS= read -r ip; do sudo ufw allow from $ip; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment