Skip to content

Instantly share code, notes, and snippets.

@sunfkny
Created March 15, 2024 01:39
Show Gist options
  • Save sunfkny/fcdebb96900ba6364b1767e5a3009e72 to your computer and use it in GitHub Desktop.
Save sunfkny/fcdebb96900ba6364b1767e5a3009e72 to your computer and use it in GitHub Desktop.
/etc/nginx/whitelist.conf
allow 10.0.0.0/8;
allow 172.16.0.0/12;
allow 192.168.0.0/16;
# https://www.cloudflare.com/ips-v4
allow 173.245.48.0/20;
allow 103.21.244.0/22;
allow 103.22.200.0/22;
allow 103.31.4.0/22;
allow 141.101.64.0/18;
allow 108.162.192.0/18;
allow 190.93.240.0/20;
allow 188.114.96.0/20;
allow 197.234.240.0/22;
allow 198.41.128.0/17;
allow 162.158.0.0/15;
allow 104.16.0.0/13;
allow 104.24.0.0/14;
allow 172.64.0.0/13;
# https://www.cloudflare.com/ips-v6
allow 2400:cb00::/32;
allow 2606:4700::/32;
allow 2803:f800::/32;
allow 2405:b500::/32;
allow 2405:8100::/32;
allow 2a06:98c0::/29;
deny all;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment