October 10, 2015

Sharing Linux Printers Across Subnets - page 2

Printing Is Still Vexatious. But We Can Prevail

  • December 20, 2007
  • By Carla Schroder
So my recipe for least pain is to edit cupsd.conf directly, and ignore all those goofy GUI thingies. Let's say you have two subnets, and You need to have routing already configured to pass traffic between the two subnets, so everyone can ping everyone. Let's say you have a printer server at, and you want computers on to be able to use it. This is a complete, barebones example CUPS configuration for
LogLevel warning

#this varies; check your distribution
SystemGroup lpadmin

# Allow remote users to access this server
Port 631
Listen /var/run/cups/cups.sock

# Enable printer sharing
Browsing On
BrowseAllow all
DefaultAuthType Basic

# Allow shared printing
Order allow,deny

# Only local users can access Web admin pages
Order allow,deny
Allow localhost

# Only local system users can access config files
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost

You may use hostnames in place of IP addresses. Then restart CUPS, either /etc/init.d/cupsys restart on Debian-ish systems, or /etc/init.d/cup restart on Fedora/Red Hat-ish systems.

Your configuration may come with a batch of policy directives. You can leave these as they are.

Sitemap | Contact Us