Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 690 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 690 Bytes

cloudflare-remoteip (cfrip-*.sh)

Fetches Cloudflare IP (v4 and v6) ranges and creates a config for your web server

mod_remoteip (Apache HTTP 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

Nginx

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.