Add the following lines to you snippet:
Allow from localhost
Allow from 127.0.0.1
Deny from all
and change the Order line to
Order deny,allow
so it reads:
<Location />
# Restrict access to the server 'root' location...
Allow from 192.168.1.0/24
Allow from localhost
Allow from 127.0.0.1
Deny from all
Require valid-user
Satisfy any
Order deny,allow
</Location>
Should this not be sufficient, add the same settings for the <Location /printers> and the </Location /admin>:
<Location /printers>
# Restrict access to the server's shared printers...
Allow from 192.168.1.0/24
Allow from localhost
Allow from 127.0.0.1
deny from all
Require valid-user
Satisfy any
Order deny,allow
</Location>
Answer from Kurt Pfeifle on serverfault.comI have a Brother DCP-1610W and just set up a remote CUPS server.
I want to connect to this server on my Fedora KDE machine, so that I don't have to install proprietary drivers on it.
I can't find a guide for this. Hopefully I could find some help here.
What I have done:
-
Installed CUPS with proprietary drivers on a Debian LXC on a mini PC server
-
Ran
cupsctl --remote-admin --remote-any --share-printersinside the LXC so I can access the admin page and print from my Fedora PC -
Tried test printing on the CUPS admin page. The printer received the request and printed successfully
-
In my Fedora machine, open System Settings -> Printers -> Add a new printer. This is where I am stuck.