Skip to content

Instantly share code, notes, and snippets.

@Znuff
Last active July 27, 2025 19:52
Show Gist options
  • Save Znuff/864b78fbe7a9d048d4fb568d2abd86ff to your computer and use it in GitHub Desktop.
Save Znuff/864b78fbe7a9d048d4fb568d2abd86ff to your computer and use it in GitHub Desktop.
#!/bin/bash
# simple one-liner to update the cloudflare IPs for `set_real_ip_from`
{ curl -s https://www.cloudflare.com/ips-v4; echo; curl -s https://www.cloudflare.com/ips-v6; } | sed '/^$/d' | sed 's/^/set_real_ip_from /' | sed 's/$/;/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment