Un exemple de configuration : /etc/cups/cupsd.conf

Cet exemple s'appuie sur un réseau local de type 192.168.1.0/255.255.255.0.

LogLevel info
Browsing On
BrowseOrder allow,deny
BrowseAllow 192.168.1.0/24
BrowseAddress 192.168.1.0/24

<Location />
  Order allow,deny
  Allow 192.168.1.0/24
</Location>

<Location /admin>
  Order allow,deny
  Allow 192.168.1.0/24
</Location>

<Location /admin/conf>
  Order allow,deny
  Allow 192.168.1.0/24
</Location>

<Policy default>
  <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>
    Allow 192.168.1.0/24
    Order allow,deny
  </Limit>

  <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>
    Allow 192.168.1.0/24
    Order allow,deny
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Allow 192.168.1.0/24
    Order allow,deny
  </Limit>

  <Limit All>
    Allow 192.168.1.0/24
    Order allow,deny
  </Limit>
</Policy>

Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf

Allow remote access
Port 631
Listen /var/run/cups/cups.sock

Pour plus d'infos : le site officiel

Billet mis en ligne le 23/12/2006 révisé le 9/12/2007