nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Access Lists not working

Open smarteshome2020 opened this issue 3 years ago • 9 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug If i using Access List and im 100% sure that the Password are correct i recieved

{ "message": "invalid username or password" }

The nginx prozess was reloaded correctly.

[2/15/2022] [9:11:00 PM] [Access ] › ✔ success Built Access file #6 for: smarteshome [2/15/2022] [9:11:24 PM] [Nginx ] › ℹ info Reloading Nginx [2/15/2022] [9:11:56 PM] [SSL ] › ℹ info Renewing SSL certs close to expiry... [2/15/2022] [9:11:58 PM] [Nginx ] › ℹ info Reloading Nginx

Nginx Proxy Manager Version V 2.9.15

To Reproduce Steps to reproduce the behavior:

  1. create Access List with "Satisfy any", Pass Auth to host" enabled and one User (test/test)
  2. add Access List to Proxy Host
  3. open Link and type User = test and Password=test in the popup
  4. See error
  5. If im using a wrong user or password the popup will cleared and ask again for user/password

Expected behavior

Screenshots image

Operating System Ubuntu 21.10 Docker

Additional context

smarteshome2020 avatar Feb 15 '22 21:02 smarteshome2020

Hey, Was it an exisiting access list that you modified? if so have you re-opened and saved the related proxy host? Its a known issue where you need to re-save the host as well as setting the access list.

hoiber avatar Feb 15 '22 22:02 hoiber

Hi, first i create the Access List and than i change the Proxy Host. Same error.I aso create an new proxy host and select the existing Access List, same error

smarteshome2020 avatar Feb 16 '22 14:02 smarteshome2020

I'm the same. In my case, I get 403 Forbidden when I enable it.
I've added my own IP to the permissions, of course.

VTFLAB avatar Feb 18 '22 07:02 VTFLAB

I had the same exact issue here. If check "satisfy any", I'll be repeatedly asking for login info. If I uncheck "satisfy any", I'll get 404 error.

aphroti avatar Mar 04 '22 08:03 aphroti

Same here - 403 Forbidden

istefy92 avatar Mar 06 '22 16:03 istefy92

Same here - 403 Forbidden

4smarthome68 avatar Jun 29 '22 17:06 4smarthome68

me too

jadsy2107 avatar Nov 17 '22 03:11 jadsy2107

Same here. Following this issue.

viseshrp avatar Dec 21 '22 02:12 viseshrp

Check this out for workarounds: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/383 Also, I had these in Custom Configuration:

real_ip_header CF-Connecting-IP;
#real_ip_header X-Forwarded-For;

Commenting them out helped solve the problem.

viseshrp avatar Dec 21 '22 03:12 viseshrp

Hi, same here, asking repeatedly for password, even with password copy/paste

Edit : I got it working but only if I create the access rule on 1st try. If I edit the rule, it breaks it

lacrima08 avatar Apr 28 '23 20:04 lacrima08

I tried every possible combination of configurations in the last two hours. What reliably fixed it for me is this:

  1. Creating a "Allow 0.0.0.0/0" rule in the Access List Tab
  2. Deactivating "Satisfy Any" in ACL Tab
  3. Create a NEW Proxy Host.
  4. Deactivating HTST, HTST Subdomains and HTTP/2 in the Proxy Host Tab. Force SSL works for me when everything else is off.

And yes. It is crucial to first create the ACL and then create a NEW Proxy Host. Adding the ACL to an existing proxy host will result in 403 error, or in logging in having no effect and login window showing over and over again.

Note: When I misconfigured it i had to "clear the site data" in the browser for it to work again once it was configured right.

And just in case someone doesn't know (as I did 2h ago). You can auto login if you use this url scheme: https.//username:[email protected]/ Hope this helps.

mxbchr avatar Sep 12 '23 21:09 mxbchr