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

Unable to authenticate to Panel through Public IP[BUG] #1107

Closed
edsanchez07 opened this issue Dec 13, 2023 · 6 comments
Closed

Unable to authenticate to Panel through Public IP[BUG] #1107

edsanchez07 opened this issue Dec 13, 2023 · 6 comments
Labels

Comments

@edsanchez07
Copy link

What happened?

Steps to reproduce:

  1. Install package 'Latest'
  2. Go to 'Panel'
  3. Error 'If I try to access the panel through my public IP or DNS I can't pass the authentication page, after providing the credentials it keeps asking for the same'

Expected results: Should be able to login like I do with local IP

Swizzin commit

5253f36

What OS are you using?

Ubuntu 22.04 (Jammy)

What architecture is your OS?

amd64

Relevant logs and output

No response

@liaralabs
Copy link
Member

Did you also post in Discord and have a port forward on your router that isn't the standard 443 port?

@edsanchez07
Copy link
Author

Did you also post in Discord and have a port forward on your router that isn't the standard 443 port?

Yes, I did post in Discord, I have a forward on my router from let's say externa_IP:2020 to localhost: 443

@liaralabs
Copy link
Member

This port forward is likely the source of the issue. The forms login method is extremely hacky and only works on port 443.

You can try disabling the forms auth in the panel options and fall back to the true basic auth.

Otherwise, if you can temporarily use port 443 as a port forward in your firewall as a point of debugging, you can get a clear image for yourself if the port forward is indeed the source of your issues (but I assume it likely is)

@edsanchez07
Copy link
Author

This port forward is likely the source of the issue. The forms login method is extremely hacky and only works on port 443.

You can try disabling the forms auth in the panel options and fall back to the true basic auth.

Otherwise, if you can temporarily use port 443 as a port forward in your firewall as a point of debugging, you can get a clear image for yourself if the port forward is indeed the source of your issues (but I assume it likely is)

Yes, it looks like it works with the 443. So, I tried your recommendation about disabling the Forms Auth, but it's not working, not sure if I am using the correct variable:

FORMS_LOGIN = 'False'

It's that the right format?

Thanks for the help!

@liaralabs
Copy link
Member

Give it a try without the quotes. You've turned false into a string by using quotes and it should be a boolean if unquoted.

@edsanchez07
Copy link
Author

Give it a try without the quotes. You've turned false into a string by using quotes and it should be a boolean if unquoted.

Oh well that solved the issue! Thanks for the quick help and response!!

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

2 participants