[cups.general] How to change to a normal hostname?

Michael Sweet msweet at apple.com
Mon Jul 16 15:53:29 PDT 2012


Michelle,

Either add "ServerAlias cups.intranet.tamay-dogan.net" to your cupsd.conf file or fix the reverse DNS lookups (in the /etc/hosts file if needed) so that the IP address and hostname match.  The scheduler is complaining because the destination address and hostname don't match, which could be a DNS rebinding attack launched against a web browser...



On Jul 16, 2012, at 3:43 PM, Michelle Konzack wrote:

> Hello,
> 
> how can I change the <localhost:631> to  <cups.intranet.tamay-dogan.net>
> and to port 80?
> 
> I have changed
> 
> --[ command 'ssh cups.intranet1.tamay-dogan.net "cat /etc/cups/cupsd.conf"' ]--
> <snip>
> #Listen 192.168.0.30:80
> Listen cups.intranet1.tamay-dogan.net:80
> Listen /var/run/cups/cups.sock
> 
> Browsing On
> BrowseOrder allow,deny
> BrowseAllow all
> BrowseLocalProtocols CUPS dnssd
> 
> DefaultAuthType Basic
> 
> # Restrict access to the server...
> <Location />
>  Order allow,deny
>  Allow 192.168.0.0/24
> </Location>
> 
> # Restrict access to the admin pages...
> <Location /admin>
>  Order allow,deny
>  Allow 192.168.0.0/24
> </Location>
> 
> <snip>
> ...
> ------------------------------------------------------------------------
> 
> But I get the error message  "400 ungültige Anfrage"  and  this  in  the
> error.log:
> 
> --[ command 'ssh cups.intranet1.tamay-dogan.net "cat /var/log/cups/error_log"' ]--
> E [16/Jul/2012:23:16:47 +0200] Request from "192.168.0.13" using invalid Host: field "cups.intranet1.tamay-dogan.net"
> E [16/Jul/2012:23:16:47 +0200] Request from "192.168.0.13" using invalid Host: field "cups.intranet1.tamay-dogan.net"
> E [16/Jul/2012:23:17:00 +0200] Request from "192.168.0.13" using invalid Host: field "cups.intranet1.tamay-dogan.net"
> E [16/Jul/2012:23:17:00 +0200] Request from "192.168.0.13" using invalid Host: field "cups.intranet1.tamay-dogan.net"
> ------------------------------------------------------------------------
> 
> It does not mather, wheter I write
> 
>    Listen 192.168.0.30:80
> or
>    Listen cups.intranet1.tamay-dogan.net:80
> 
> it is the same error message.
> 
> Thanks, Greetings and nice Day/Evening
>    Michelle Konzack
> 
> -- 
> ##################### Debian GNU/Linux Consultant ######################
>   Development of Intranet and Embedded Systems with Debian GNU/Linux
>               Internet Service Provider, Cloud Computing
>                <http://www.itsystems.tamay-dogan.net/>
> 
> itsystems at tdnet                     Jabber  linux4michelle at jabber.ccc.de
> Owner Michelle Konzack
> 
> Gewerbe Strasse 3                   Tel office: +49-176-86004575
> 77694 Kehl                          Tel mobil:  +49-177-9351947
> Germany                             Tel mobil:  +33-6-61925193  (France)
> 
> USt-ID:  DE 278 049 239
> 
> Linux-User #280138 with the Linux Counter, http://counter.li.org/
> _______________________________________________
> 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