Enable remote CUPS web interface

I have a problem with cups, one of my employee in the office cannot access the printer. and don't wanna fix it form his machine, so i think i will remote the cups from my linux box :)

lets start, open and edit the cups config file at
/etc/cups/cupsd.conf
edit this line
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
into
# Only listen for connections from the local machine.
Port 631
Listen /var/run/cups/cups.sock
add the bold line into config file
# Restrict access to the server...
<Location />
  Order allow,deny
  

Allow From 192.168.1.176 or Allow all
</Location>
# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow @LOCAL
  
Allow From 192.168.1.176 or Allow all
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow @LOCAL
  Allow From 192.168.1.176 or Allow all
</Location>
restart the services
/etc/init.d/cups restart
then access the cups web interface from your linux box
http://ip-cups-remote:631

Comments