3 Oct 2011 berend   » (Journeyer)

Just connected a Windows PC to my FreeBSD 8.2-STABLE CUPS printer server. The PC was in the DMZ, so required a bit of firewall poking. The basic thing to do is create a class with CUPS.

I opened two ports in my ipfw firewall: 631 (ipp) and 515 (printer). I added the Window PC's ip address to /etc/hosts.allow:

cups-lpd : windows.example.com : allow

Had to change some settings in /usr/local/etc/cups/cupsd.conf as well: cups must listen on the network card for my DMZ obviously, as it didn't do that before. And in the section had to allow the subnet in the DMZ. I simply allowed the entire subnet as I will control individual access with the firewall.

Next I simply did "Add a printer", clicked on printer is not listed, and specified as name http://www.example.com:631/classes/pcl and that's it. Windows prompted me for a suitable driver, and done.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!