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 login after enable Cloudflare proxy #6645

Closed
2 of 4 tasks
huyhoang8398 opened this issue Dec 1, 2023 · 6 comments
Closed
2 of 4 tasks

Cannot login after enable Cloudflare proxy #6645

huyhoang8398 opened this issue Dec 1, 2023 · 6 comments

Comments

@huyhoang8398
Copy link

Prerequisites

  • Can you reproduce the problem in a fresh installation of the "develop" branch?
  • Do you have any errors in the PHP error log, or javascript console?
  • Did you check the osTicket forums?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?

For more information on how to write a good bug report

Description

After enabled Cloudflare proxy, I no longer can login into OSticket

Steps to Reproduce

  1. Enable Cloudflare proxy
  2. Login to osticket via scp

Versions

v1.15.7
Amazon Linux 2
Chrome/Firefox

@JediKev
Copy link
Contributor

JediKev commented Dec 1, 2023

@huyhoang8398

First off, you are using an old and unsupported version of osTicket. You will need to upgrade to the latest and retest. Secondly, when using a proxy it’s important you edit your include/ost-config.php file and modify this setting:

Cheers.

@huyhoang8398
Copy link
Author

Hi @JediKev , Thanks for your reply
yes since we are still using old server.

I have tried to set that parameter with Wildcard "*" (not recommended) can be used to trust all chained IPs , also clear cached from Cloudflare and cookies, also session database, but I still cannot login

@JediKev
Copy link
Contributor

JediKev commented Dec 1, 2023

@huyhoang8398

Well, we can only help if you are using a supported version. At this point you’d have to look at your various logs in osTicket and on the server to see what’s going on.

Also, ensure that the requests come in with the appropriate headers outlined in the link above (ie. HTTP_X_FORWARDED_FOR and HTTP_X_FORWARDED_PROTO).

Cheers.

@huyhoang8398
Copy link
Author

Just found that if i put in a separate domain, it will work but not if for example with wordpress site and /tickets is for osTicket. my .htaccess is default from wordpress

@JediKev
Copy link
Contributor

JediKev commented Dec 14, 2023

@huyhoang8398

Can you try changing the SSL setting to Full Strict in your Cloudflare configuration?

You may also want to disable the Admin Panel > Settings > Agents > Bind Agent Session to IP setting, clear all site cookies, and retest.

Cheers.

@huyhoang8398
Copy link
Author

Thanks @JediKev , it works well by disabling bind agent session to IP now.
Have a great day

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

No branches or pull requests

2 participants