I’ve just installed CUPS to play around with on my Raspberry Pi, and it seems that the default configuration file is very restrictive. I am unable to even access the Web Interface from another machine as Remote Administration is not enabled.
First thing to do – allow other machines to access CUPS.
Changing Line 20 from
Listen localhost:631
to
Listen 0.0.0.0:631
fixed that first problem.
Now, I can access the CUPS Forbidden page, but nothing else.
On line 36, the code below should be present.
<Location />
Order allow,deny
</Location>
Looks like CUPS is not explicitly set to allow connections from the local LAN.
Changing it to this has allowed me access from another machine, however I cannot access the “Administration” page.
That still gets me a forbidden error.
<Location />
Order allow,deny
Allow 10.0.0.0/24
</Location>
Looking at the configuration file, again it has not explicitly specified that access from the LAN is allowed.
On line 41, the code below should be present.
<Location /admin>
Order allow,deny
</Location>
Changing it to this seems to solve it
<Location /admin>
Order allow,deny
Allow 10.0.0.0/24
</Location>
Now I can access the CUPS server from another machine on my network to configure CUPS as my Raspberry Pi is headless at the moment. Just make sure you restart the CUPS service by running /etc/init.d/cups restart
after you’ve changed your configuration file !
Hope this helps people !