Advertisement
psycholyzern

cloudflare-ip.conf

Apr 19th, 2017
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #cloudflare ip range for nginx module realip
  2. #include this file into your nginx.conf
  3.  
  4. #ipv4
  5. set_real_ip_from 103.21.244.0/22
  6. set_real_ip_from 103.22.200.0/22
  7. set_real_ip_from 103.31.4.0/22
  8. set_real_ip_from 104.16.0.0/12
  9. set_real_ip_from 108.162.192.0/18
  10. set_real_ip_from 131.0.72.0/22
  11. set_real_ip_from 141.101.64.0/18
  12. set_real_ip_from 162.158.0.0/15
  13. set_real_ip_from 172.64.0.0/13
  14. set_real_ip_from 173.245.48.0/20
  15. set_real_ip_from 188.114.96.0/20
  16. set_real_ip_from 190.93.240.0/20
  17. set_real_ip_from 197.234.240.0/22
  18. set_real_ip_from 198.41.128.0/17
  19. set_real_ip_from 199.27.128.0/21
  20.  
  21. #ipv6
  22. set_real_ip_from 2400:cb00::/32
  23. set_real_ip_from 2405:8100::/32
  24. set_real_ip_from 2405:b500::/32
  25. set_real_ip_from 2606:4700::/32
  26. set_real_ip_from 2803:f800::/32
  27. set_real_ip_from 2c0f:f248::/32
  28. set_real_ip_from 2a06:98c0::/29
  29.  
  30. real_ip_header CF-Connecting-IP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement