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

webui falls back to :631 when accessed remotely via port forwarding #6158

Open
nerdoc opened this issue Nov 15, 2023 · 0 comments
Open

webui falls back to :631 when accessed remotely via port forwarding #6158

nerdoc opened this issue Nov 15, 2023 · 0 comments

Comments

@nerdoc
Copy link

nerdoc commented Nov 15, 2023

I am using cups 2.4.1 (I know this is an older version, on Ubuntu 22.04 LTS, but I have co current CUPS available - but I doubt that this is fixed yet), and connecting to it via ssh, and port forwarding via ssh -L 8000:localhost:631 myhost. So I can access the remote CUPS at localhost:8000.

navigating to http://localhost:8000/printers/<printer-name> and choosing an action from "Maintainance" or "Administration" combo boxes does that correctly, here e.g. "Set as server default". I get to the confirmation page, which stays a few seconds, and then it auto-redirects back to http://localhost:631/printers/<printer-name>

Mark that it redirects to fixed localhost:631, and not to localhost:8000

This could be a big problem, as mostly on localhost:631 there is running a CUPS too, and the next step changing or deleting a printer is then done on localhost, unknowingly, as the pages look identical. This could lead to crucial problems.

@nerdoc nerdoc changed the title webui falls back to :631 when accessed remotely vie port forwarding, and redirecting to "home" webui falls back to :631 when accessed remotely via port forwarding Nov 15, 2023
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

1 participant