[cups.general] Query about how to setup server so it sends browsepackets to other networks....ain't workin...
wtautz
wtautz at cs.uwaterloo.ca
Fri Aug 25 07:03:29 PDT 2006
Hi,
I have a server that does not listen for incoming browser packets as I
only have locally
configured printers, i.e. printers that exist in printers.conf file.
I have
BrowseAddressAddress xxx.xxx.xxx.255:631 and then
we have
BrowseRelay hostname-of-server xxx.xxx.xxx.255
No luck. I did get it to work if I specified the client's IP in the
BrowseAddress directive.
(See below for the full server cupsd.conf file and the client)
client: Ubuntu/Dapper 1.2.2
server: compiled from www.cups.org version 1.2.2
It is interesting to note that the Ubuntu client seems to ignore certain
settings I have specified
(in particular it always says in the error_log file:
* Restarting Common Unix Printing System:
cupsd
[ ok ]
I [25/Aug/2006:09:59:18 -0400] Full reload complete.
d [25/Aug/2006:09:59:18 -0400] cupsdStartListening: 1 Listeners
I [25/Aug/2006:09:59:18 -0400] Listening to /var/run/cups/cups.sock on
fd 0...
d [25/Aug/2006:09:59:18 -0400] cupsdSetEnv:
CUPS_SERVER=/var/run/cups/cups.sock
d [25/Aug/2006:09:59:18 -0400] cupsdSetEnv: CUPS_ENCRYPTION=IfRequested
d [25/Aug/2006:09:59:18 -0400] cupsdSetEnv: IPP_PORT=0
d [25/Aug/2006:09:59:18 -0400] cupsdResumeListening: Setting input bits...
d [25/Aug/2006:09:59:18 -0400] cupsdResumeListening: Adding fd 0 to
InputSet...
d [25/Aug/2006:09:59:18 -0400] cupsdStartBrowsing: Adding fd 2 to
InputSet...
d [25/Aug/2006:09:59:18 -0400] cupsdStartServer: Adding fd 3 to InputSet...
d [25/Aug/2006:09:59:18 -0400] cupsdCheckJobs: 0 active jobs,
sleeping=0, reload=0
d [25/Aug/2006:09:59:19 -0400] stringpool: 168 strings, 4912 allocated,
3712 total bytes
d [25/Aug/2006:09:59:19 -0400] select_timeout: 86400 seconds to do nothing
NOTE. the 86400 seconds to do nothing??????
Even though I have BrowseInterval set to 25 seconds and BrowseTimeout to 30.
(It is interesting to note that the cups.org provided server that I
compiled pays attention
to these values)
-------------------------------client cupsd.conf--------------------
LogLevel Debug2
SystemGroup lpadmin
BrowseAllow @LOCAL
BrowseTimeout 30
BrowseInterval 25 # Needs to be < BrowseTimeOut
DefaultAuthType Basic
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
<Location /admin>
Order allow,deny
Allow localhost
</Location>
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes
Enable-Printer Disable-Printer Pause-Printer-After-Current-Job
Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer
Restart-Printer Shutdown-Printer Startup-Printer Promote-Job
Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Include /etc/cups/cups.d/ports.conf
contains: Browsing on
Include /etc/cups/cups.d/browse.conf
contains: Listen /var/run/cups/cups.sock
so the client only has the UDP port open (which I assume is enough to be
able to receive printer info packets)
--------------------------- end of client cupsd.conf
configuration------------------
--------------------------server config---------------
LogLevel debug2
SystemGroup www_cscf
Listen *:631
Listen /software/cups-1.2.X/data/spool/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
BrowseRelay 127.0.0.1 129.97.84.255
DefaultAuthType Basic
BrowseInterval 300
<Location />
Order deny,allow
# Allow people to see stuff
Deny all
# Only UW can see data on this server
Allow 129.97.0.0/255.255.0.0
#Allow @LOCAL
</Location>
<Location /admin>
AuthType Basic
Require user @SYSTEM
Order deny,allow
Deny all
# Allow CSCF folks to admister server. Other faculties can edit
# locally the file in the local location.
Allow 129.97.15.0/255.255.255.0
</Location>
<Location /admin/conf>
Require user @SYSTEM
</Location>
<Policy default>
# Job-related operations must be done by the owner or an adminstrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
</Limit>
# All administration operations require an adminstrator to authenticate...
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes
Enable-Printer Disable-Printer Pause-Printer-After-Current-Job
Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer
Restart-Printer Shutdown-Printer Startup-Printer Promote-Job
Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
Require user @SYSTEM
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
---------------------------------------- end of server configuration
---------------------------------------------------------------
More information about the cups
mailing list