[cups.general] access CUPS web interface through SSH port forwarding
Michael Sweet
msweet at apple.com
Tue Jun 21 10:47:28 PDT 2011
On Jun 21, 2011, at 10:13 AM, Matthias Apitz wrote:
> Hello,
>
> This is with CUPS 1.4.3, in older versions 1.x we did not face the problem.
>
> We access remote servers via SSH and forward the port 631 though the SSH
> session as:
>
> $ ssh -C -L 1631:remote-host:631 remote-host
>
> Let's say the SSH runs on host 'myhost'; the LISTEN on port 1631 is fine and
> connects are forwarded to the remote CUPS daemon;
>
> but any request to http://myhost:1631/ gives only '400 bad request' from
> CUPS; I've checked with
>
> $ lynx -trace http://myhost:1631/
>
> what's going on and I see that the HTTP request contains a line
>
> Host: myhost:1631
>
> which perhaps is not understood by CUPS daemon. How can I get this working?
This is the built-in DNS rebinding attack protection. Use the "ServerAlias" directive on the remote host to allow it to respond to those requests.
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list