Fetches Cloudflare IP (v4 and v6) ranges and creates a config for your web server
Example setup on Debian/Ubuntu:
sudo ./cfrip-apache2.sh /etc/apache2/conf-available/cloudflare-remoteip.conf
sudo a2enmod remoteip
sudo a2enconf cloudflare-remoteip
sudo systemctl restart apache2
Subsequent usage (updating):
sudo ./cfrip-apache2.sh /etc/apache2/conf-available/cloudflare-remoteip.conf
sudo systemctl reload apache2
Example setup on Debian/Ubuntu:
sudo ./cfrip-nginx.sh /etc/nginx/conf.d/cloudflare-realip.conf
sudo systemctl reload nginx
It's the same when updating.