From Pine View Farm

Adventures in Linux: Tipping CUPS (Geek Alert) 0

A little while ago, I wrote of my adventures getting Samba working across my network and mentioned that my next project was networking my webserver to the printer on my other Linux computer.

I use CUPS for Linux printing. It worked first-time, all the time on the local printer. But I just couldn’t seem to get CUPS on the webserver to connect with CUPS here.

I solved it today.

I had to correct edit my firewall configuration file (/etc/rc.d/rc.firewall), setting the proper condition to permit a connection. That took asking for help from the Slackware mailing list, since the firewall website seemed to have disappeared. One of the netizens there pointed me to the new website:

PERMIT=”[my subnet]/24″

Then I actually had an idea of my own, and looked inside the CUPS configuration file (/etc/cups/cupsd.conf) and found the following settings to allow or prevent external connections. By default, it was set to DENY ALL from the Big Wide World. I changed it as follows to allow my network in the door:


Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From [my subnet]


AuthType Basic
AuthClass System
Encryption IfRequested
Satisfy All
Order deny,allow
Deny From All
Allow From [my subnet]

Now I’m happily printing across the Linux portion of the network.

Share

Comments are closed.

From Pine View Farm
Privacy Policy

This website does not track you.

It contains no private information. It does not drop persistent cookies, does not collect data other than incoming ip addresses and page views (the internet is a public place), and certainly does not collect and sell your information to others.

Some sites that I link to may try to track you, but that's between you and them, not you and me.

I do collect statistics, but I use a simple stand-alone Wordpress plugin, not third-party services such as Google Analitics over which I have no control.

Finally, this is website is a hobby. It's a hobby in which I am deeply invested, about which I care deeply, and which has enabled me to learn a lot about computers and computing, but it is still ultimately an avocation, not a vocation; it is certainly not a money-making enterprise (unless you click the "Donate" button--go ahead, you can be the first!).

I appreciate your visiting this site, and I desire not to violate your trust.