Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CUPS daemon is not set to listen on port 631 in the whole network when user wants CUPS to show printers #2557
Comments
|
CUPS.org User: till.kamppeter See also the original report at Ubuntu: https://bugs.launchpad.net/ubuntu/+source/cupsys/+bug/151510 |
|
CUPS.org User: martin.pitt.canonical Please note that this patch is far from ideal. There is no real need for opening the TCP port to the public just for browsing. Only the UDP port should listen to the world when browsing is enabled, and sharing is disabled. |
|
CUPS.org User: mike No, this patch is bogus. Showing remote printers does not require an open Port 631 - that is only required to share printers with other systems. CUPS browsing happens on UDP port 631, which is bound when Browsing is On and either of the BrowseLocalProtocols and BrowseRemoteProtocols lists CUPS (which is the default configuration on all operating systems). If I was to guess at a cause, look at Ubuntu patches to CUPS and/or to firewall settings that would be blocking UDP port 631 when the scheduler is not configured to share printers. This is not a CUPS bug. |
|
"fix-show-remote-printers.patch": #! /bin/sh /usr/share/dpatch/dpatch-run fix-show-remote-printers.dpatch by till.kamppeter@gmail.comAll lines beginning with `## DP:' are a description of the patch.DP: No description.@dpatch@
|
michaelrsweet commentedOct 11, 2007
Version: 1.3-current
CUPS.org User: till.kamppeter
Using cupsctl, the CUPS web interface, or system-config-printer (Ubuntu Gutsy or Fedora Rawhide) to set the CUPS server option for showing shared CUPS printers from remote CUPS servers CUPS sets correctly
Browsing On
BrowseAllow @Local
in cupsd.conf
but misses to replace
Listen localhost:631
by
Port 631
So CUPS does not listen to the broadcasts.
To reproduce:
Open the web interface, http://localhost:631/, go to "Administration", in the "Server" section check "Show printers shared by other systems" and uncheck all the rest.
If you still see the remote printers after that, clear the cache:
/etc/init.d/cups stop
rm /var/cache/cups/remote.cache
/etc/init.d/cups start
and observe for more than 30 seconds. The remote printers will not appear.
Many users did not see this problem as they have both "Show printers shared by other systems" and "Share published printers connected to this system" activated. The latter sets "Port 631" correctly.
Patch to fix this is attached.