Затем снова открываем в редакторе файл /etc/cups/cupsd.conf и секцию:
# Restrict access to the server...
<Location />
Order allow,deny
</Location>
Приводим к виду:
# Restrict access to the server...
<Location />
Order deny,allow
# Запрещаем доступ всем
Deny from All
# Разрешаем доступ самому себе
Allow from
127.0.0.1 # Разрешаем доступ локальной сети
Allow from
192.168.111.0/255.255.255.0</Location>
Кроме того секцию:
<Limit All>
Order deny,allow
</Limit>
Нужно привести к виду:
<Limit All>
Order deny,allow
Deny from All
Allow from
127.0.0.1 Allow from 192.168.111.0.255.255.255.0
</Limit>
И снова перезапустить cups:
/etc/init.d/cupsys restart