我有一个关于为CentOS配置CUPS的问题。我在一台机器上安装了CUPS,我正在尝试从另一台机器访问CUPS的web界面。具有CentOS和CUPS的机器的IP为10.0.0.1,第二台机器的IP为10.0.0.2。我有一个网络打印机的IP设置为10.0.0.10,这两台机器可以平打印机。但是第二台机器不能通过web接口访问CentOS机器。
下面是我的cupsd.conf文件的一部分:
SystemGroup sys root
Listen *:631
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress 10.0.0.2:631
<Location />
Order allow,deny
Allow from 10.0.0.2
</Location>
<Location /admin>
Order allow,deny
Allow from 10.0.0.2
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow from 10.0.0.2
</Location>我还在某个地方读到CentOS的CUPS需要,是这样的吗?
发布于 2011-10-21 11:40:59
CUPS不需要SSL证书。您可以通过将DefaultEncryption Never添加到配置文件并重新启动守护进程来禁用https。在最近版本的CentOS (您没有指定正在运行的版本)中,web接口中有一个“允许远程管理”复选框,它将在端口631上提供远程CUPS管理页访问。在您的例子中,浏览到:https://10.0.0.1:631/admin
下面是我倾向于在新系统上部署的标准CUPS文件。
MaxLogSize 2000000000
LogLevel info
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Disable printer sharing and shared printers.
Browsing Off
DefaultAuthType Basic
<Location />
Allow ALL
Allow all
# Allow remote administration...
Order allow,deny
Allow all
</Location>
<Location /admin>
Allow ALL
Allow all
# Allow remote administration...
Order allow,deny
Allow all
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Allow ALL
Allow all
# Allow remote access to the configuration files...
Order allow,deny
Allow all
</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>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
DefaultEncryption Neverhttps://serverfault.com/questions/311799
复制相似问题