LogLevel debug
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS
DefaultAuthType None
WebInterface Yes
RequestRoot /usr/local/samba/var/spool
<Location />
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  JobPrivateAccess All
  JobPrivateValues All
  SubscriptionPrivateAccess All
  SubscriptionPrivateValues All
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow From 192.168.xxx.xxx/24
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow From 192.168.xxx.xxx/24
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    Order deny,allow
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Order deny,allow
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Order deny,allow
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit All>
    Order deny,allow
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess All
  JobPrivateValues All
  SubscriptionPrivateAccess All
  SubscriptionPrivateValues All
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow From 192.168.xxx.xxx/24
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    Order deny,allow
    Deny from All
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit Pause-Printer Resume-Printer 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 Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    Order deny,allow
    Deny from All
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Order deny,allow
    Deny from All
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit All>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow From 192.168.xxx.xxx/24
  </Limit>
</Policy>
<Policy allowallforanybody>
  <Limit JobPrivateAccess>
    Order deny,allow
    Deny from All
    Allow from 127.0.0.1
    Allow from 192.168.xxx.xxx/24
  </Limit>
  <Limit All>
    Order deny,allow
    Deny From All
    Allow from 127.0.0.1
    Allow From 192.168.xxx.xxx/24
  </Limit>
</Policy>
DefaultPolicy default
<Location /printers>
  AuthType None
  Order Deny,Allow
  Deny From None
  Allow From All
</Location>
# Allow remote administration...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
</Location>
# Allow remote access to the configuration files...
<Location /admin/conf>
  AuthType None
  Order allow,deny
  Allow @LOCAL
</Location>
