Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Lists not working #1859

Open
smarteshome2020 opened this issue Feb 15, 2022 · 12 comments
Open

Access Lists not working #1859

smarteshome2020 opened this issue Feb 15, 2022 · 12 comments

Comments

@smarteshome2020
Copy link

smarteshome2020 commented Feb 15, 2022

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

@hoiber
Copy link

hoiber commented Feb 15, 2022

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.

@smarteshome2020
Copy link
Author

smarteshome2020 commented Feb 16, 2022

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

@VTFLAB
Copy link

VTFLAB commented Feb 18, 2022

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.

@aphroti
Copy link

aphroti commented Mar 4, 2022

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.

@istefy92
Copy link

istefy92 commented Mar 6, 2022

Same here - 403 Forbidden

1 similar comment
@4smarthome68
Copy link

Same here - 403 Forbidden

@jadsy2107
Copy link

me too

@viseshrp
Copy link

Same here. Following this issue.

@viseshrp
Copy link

viseshrp commented Dec 21, 2022

Check this out for workarounds: #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.

@lacrima08
Copy link

lacrima08 commented Apr 28, 2023

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

@mxbchr
Copy link

mxbchr commented Sep 12, 2023

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:password@example.com/
Hope this helps.

Copy link

github-actions bot commented May 4, 2024

Issue is now considered stale. If you want to keep it open, please comment 👍

@github-actions github-actions bot added the stale label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants