Skip to content

Commit

Permalink
fix(ip-masking): added 172.19.0.0/12 subnet (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed May 31, 2024
1 parent cb3df29 commit 509bbd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nginx/wiki.metaploy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ server {
}

# Cloudflare masks real IPs
## We are using cloudflare for DNS management
## Cloudflare masks the real ip of the user with its ips
## Here we are specifying cloudflare to provide with the user's actual ip
## via sending a special header.
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
Expand All @@ -29,11 +33,12 @@ server {
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 172.19.0.0/13;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 127.0.0.1/32;
real_ip_header CF-Connecting-IP;
}
}

0 comments on commit 509bbd1

Please sign in to comment.