mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 09:55:51 +03:00
[GH-ISSUE #2829] Expand default Docker subnet CIDR to be more inclusive #1940
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1940
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lyh16 on GitHub (Apr 14, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2829
Is your feature request related to a problem? Please describe.
The current "set_real_ip_from" that targets the Docker subnet points to the CIDR "172.16.0.0/12" as referenced below.
github.com/NginxProxyManager/nginx-proxy-manager@5f2576946d/docker/rootfs/etc/nginx/nginx.conf (L63)However, due to the many possible ways of configuring Docker in the wild, many users often end up with a different subnet which is not covered by the above mentioned CIDR. This results in many users failing to acquire the real IP address of visitors using the default configurations. A quick Google search will reveal that quite a lot of users opt to modifying the CIDR for Docker.
Describe the solution you'd like
Change the CIDR for the Docker subnet from the current "172.16.0.0/12" to "172.0.0.0/8"
Describe alternatives you've considered
Manually modify the CIDR to match my needs via "docker exec -it".
However, even if I fix the CIDR to my likings by using "docker exec -it", pulling a newer version of the Docker image for the project will result in the resetting of the said customizations.
Additional context
@Zoey2936 commented on GitHub (Apr 14, 2023):
It is a very bad idea to trust public ips...
@lyh16 commented on GitHub (Apr 15, 2023):
Ahh... my bad. Yes, you are right. I somehow mistakenly thought that the mentioned issue was related to some kind of limitation on NPM's part. But it actually was a misconfiguration issue on my part. Compliance with RFC 1918 should be enough. Calling down issue and pull request.