[cups.general] X-Forwarded-For

Michael Sweet msweet at apple.com
Mon Aug 13 18:41:10 PDT 2012


This configuration isn't currently supported by CUPS, mainly because you used to be able to use implicit classes with CUPS browsing on the clients to have the clients do their own load balancing...

On the client machines you can setup classes that point to each server queue, and then the clients will round-robin between the two, preserving the client address and username.


On Aug 13, 2012, at 8:01 PM, Jack <jax at nwmt.us> wrote:

> Say, I'm in a situation where we absolutely need to have the printservers to stay up.  As such, I've put up 2 CUPS servers behind another one running haproxy.  All has been perfect - so far so good.  Now, I'm trying to debug an issue, but my originating host is always the IP of my haproxy machine
> 
> So, I never know who actually sent the job.
> 
> Now, in the web server world, I can turn on the option to forwardfor and then extract the X-Forwarded-For value out of the http header, and do something with it - mostly just put that into my log file - the actual IP of the client machine.
> 
> What I'm interested in knowing - has someone already thought of this and it's pretty easy to accomodate in CUPS?  If so, how?
> 
> thanks,
> Jack
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list