Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Bash script to restore visitor real IP under Cloudflare with Nginx

License

NotificationsYou must be signed in to change notification settings

VirtuBox/nginx-cloudflare-real-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configure Nginx to restore Visitors real IP under Cloudflare CDN

Features

  • Get Cloudflare IPv4 + IPv6 list and create nginx configuration to restore visitors real IP in/etc/nginx/conf.d/cloudflare.conf
  • Whitelist Cloudflare IPs on port 80 & 443 with UFW (optional)

Requirements

  • Nginx built with http_realip_module

You can check if http_realip_module available with :

nginx -V2>&1| grep with-http_realip_module

If the previous command return nothing, http_realip_module isn't available


Usage

Nginx configuration only

bash<(wget -O - vtb.cx/nginx-cloudflare|| curl -sL vtb.cx/nginx-cloudflare)

Nginx configuration + UFW configuration

bash<(wget -O - vtb.cx/nginx-cloudflare|| curl -sL vtb.cx/nginx-cloudflare) --ufw

Published & maintained byVirtuBox

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp