Subject: Re: coping with funky remote printers
To: Luke Mewburn <lukem@NetBSD.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 01/01/2005 10:21:20
In message <20050101143743.GA11474@mewburn.net>, Luke Mewburn writes:
>

>On Fri, Dec 31, 2004 at 05:22:46PM -0500, Steven M. Bellovin wrote:
>  | I have a Brother 5150D printer that is going to serve assorted NetBSD
>  | boxes.  The question is how best to use it.
>  | Currently, I've connected its parallel input jack to the print server
>  | built in to an SMC 7004ABR NAT box.  That usually works...  However,
>  | NetBSD's lpd doesn't honor if=3D filtering for remote printers, though 
>  | understand that FreeBSD's does.  I'd like to use magicfilter or
>  | equivalent.  (apsfilter seems to have a hack-around way to do this, but
>  | I haven't quite gotten it working yet.)
>
>You can work around this by designating one of your NetBSD hosts as the
>"printserver" and using a "direct" TCP/IP port (i.e, non-lpd-emulation)
>on the SMC -- if it supports such a feature.
>
>For example, my JetDirect enabled LaserJet 4M+ is "lj4mp" (which
>supports "direct" printing to port 9100) and my main server is "argo",
>and all of my NetBSD systems (including argo) share the following
>printcap entry:
>
>	lj4mp|lp|lj4|lj4m|HP LaserJet 4M plus:\
>		:rm=3Dargo:\
>		:lp=3D9100@lj4mp:\
>		:sd=3D/var/spool/output/lj4mp:\
>		:lf=3D/var/spool/output/lj4mp/log:\
>		:if=3D/usr/pkg/libexec/magicfilter/ljet4m-filter:\
>		:mx#0:sh:
>
>(The crucial entries are the rm & lp entries, and the if entry).
>
>
>I hope that's useful.
>
>Luke.

Informative, but not useful for me; the SMC box has no such direct port.
(It does seem to answer on port 4626; I don't know what this port does.
Fortunately, that port isn't open on the outside....)

		--Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb