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

Cannot log in to Nginx when using Access List #3804

Open
TechGuyAlabama opened this issue Jun 13, 2024 · 1 comment
Open

Cannot log in to Nginx when using Access List #3804

TechGuyAlabama opened this issue Jun 13, 2024 · 1 comment
Labels

Comments

@TechGuyAlabama
Copy link

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

I have all of my apps setup on the network "internal". I can access the NPM without issue if I do not use the Access List. As soon as I enable the Access List, I'm unable to log in. I enter the credentials and the webpage flashes but doesn't log in. The credentials do not disappear or even act like it's done anything. I've tried this in several browsers and cleared all cookies in an attempt to resolve this.

If I remove the Access List, I can log in without issue.

I've tried every option in the Access List and nothing allows me too log in. With and without Pass Through, with and without Satisfy Any, with an ip and username/passwords. Nothing I do works.

Is there something that I am missing that needs to be done to get NPM to work through an Access List on it's own proxy host?

Thanks all!

Nginx Proxy Manager Version
v2.11.2

To Reproduce
Steps to reproduce the behavior:

  1. Create proxy host for NPM.
  2. Test that I can log in, test successful.
  3. Create an Access List - set Satisfy Any true and Pass Thru to false (tried both options without success) Set username and password with no ip.
  4. Able to access the site. Attempt to login and the screen flashes without clearing the username or password.

Expected behavior
I should be able to log in just like I can without an Access List attached to the proxy host.

Screenshots
https://postimg.cc/R3HCyzfQ (public access list)
https://i.postimg.cc/PJy0HR4m/image.png (with access list option)
https://i.postimg.cc/hGCJJDtw/image.png
https://i.postimg.cc/gJX0n35X/image.png
https://i.postimg.cc/gjymZsKJ/image.png
https://i.postimg.cc/DwpFL81q/image.png

Operating System
Ubuntu 20.04 headless public virtual machine

Additional context
My setup:
Ubuntu 20.04 public virtual machine
Docker version 26.1.4, build 5650f9b
docker-compose version 1.25.0, build unknown
Nginx Proxy Manager (port 81)
MariaDB
https://nginx.mydomain.com
I've tried Firefox, Edge and Chrome in regular and safe modes without success. I've tried completely clearing cookies also.

@TechGuyAlabama
Copy link
Author

ok I did find on the website the following:

https://nginxproxymanager.com/faq/#when-adding-username-and-password-access-control-to-a-proxy-host-i-can-no-longer-login-into-the-app

I went this direction, using a username/password, since the ip portion was not working for me. I'll explain.

I work from a dedicated server as a development box that h as a static ip address. I added my ip to ALLOW in the Access List. I did not enter a username or password. When I try to access the website, I get a 403 forbidden.

I tailed the logs and this is what it is showing:

[13/Jun/2024:20:12:23 +0000] - - 403 - GET https nginx.mydomain.com "/" [Client 192.168.48.1] [Length 111] [Gzip 1.35] [Sent-to 192.168.48.4] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"
[13/Jun/2024:20:12:23 +0000] - - 403 - GET https nginx.mydomain.com "/" [Client 192.168.48.1] [Length 111] [Gzip 1.35] [Sent-to 192.168.48.4] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "-"

The client that its referring to is the ip of the network gateway that Nginx and MariaDB is currently running on.

I checked SSH to verify the ip address of what it saw my ip address as, and it shows my public ip of my dev server.

I tailed the logs when I connected from my office, which is in another state, and I show the same thing:

[13/Jun/2024:20:23:05 +0000] - - 403 - GET https nginx.tygir.com "/" [Client 192.168.48.1] [Length 111] [Gzip 1.35] [Sent-to 192.168.48.4] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
[13/Jun/2024:20:23:23 +0000] - - 403 - GET https nginx.tygir.com "/" [Client 192.168.48.1] [Length 111] [Gzip 1.35] [Sent-to 192.168.48.4] "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"

Any suggestions would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant