NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.17k stars 2.55k forks source link

IP Address Whitelist/Blacklist only valid while set to docker network #3931

Open iccfish opened 1 month ago

iccfish commented 1 month ago

Checklist

Describe the bug I need to using IP address whitelist/blacklist to to limit access some domains.

After set, I always got 403 forbidden in browser.

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>openresty</center>
</body>
</html>

and log shows:

[13/Aug/2024:09:54:08 +0000] - - 403 - GET https ***** "/" [Client 172.18.0.1] [Length 150] [Gzip -] [Sent-to 172.23.1.93] "curl/7.81.0" "-"

The client ip 172.18.0.1 was actually the docker network's IP, neither the host local ip nor my client ip, so I can not figure out how to set access list.

My client IP 172.23.1.96

The host local ip was 172.23.1.93

Docker network gateway ip was 172.18.0.1

Current accesslist was

allow 172.23.1.1/16
deny all

Nginx Proxy Manager Version 2.11.3

freeoneed commented 2 weeks ago

I have the same problem. And i think you mean the IP address 172.18.0.1:

Docker network gateway ip was
172.8.0.1
iccfish commented 1 week ago

I have the same problem. And i think you mean the IP address 172.18.0.1:

Docker network gateway ip was
172.8.0.1

yeah... thanks for heads up.