我有一个关于为CentOSconfigurationCUPS的问题。 我在一台机器上安装了CentOS上的CUPS,并且正在尝试从另一台机器访问CUPS的Web界面。 CentOS和CUPS的机器IP为10.0.0.1,第二台机器的IP为10.0.0.2。 我有一个IP地址为10.0.0.10的networking打印机,这两台机器都可以ping打印机。 但第二台机器无法通过networking界面访问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需要SSL证书,这是真的吗?
CUPS不需要SSL证书。 您可以通过将DefaultEncryption Never添加到configuration文件并重新启动守护进程来禁用https。 在最近的CentOS版本中(你没有指定正在运行的版本),在Web界面有一个“允许远程pipe理”checkbox,将在端口631上提供远程的CUPSpipe理页面访问。在你的情况下,浏览到: 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 Never