Auto update script to restoring original visitor IPs cloudflare ip for nginx on ubuntu
Find a file
2025-05-13 13:06:19 +03:00
.gitignore Add gitignore 2018-12-06 15:16:07 +02:00
custom.txt Add custom ip address for revers proxy support 2025-05-13 13:06:19 +03:00
README.md Update README.md 2020-12-19 23:26:06 +02:00
update.sh Add custom ip address for revers proxy support 2025-05-13 13:06:19 +03:00

Auto update CloudFlare IP addresses for nginx

IP Ranges

Thanks Marek Bosman for inspiration

INSTALL ( root user )

Clone repo

cd /opt && git clone https://github.com/exploitfate/cfip.git
chmod +x /opt/cfip/update.sh

Run script

/opt/cfip/update.sh

Add cron task ( root user )

0 0 * * * test -x /opt/cfip/update.sh && /opt/cfip/update.sh