View Single Post
  #6   (View Single Post)  
Old 2nd March 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

I entered this in my printcap on 192.168.222.20 although 192.168.222.244 doesn't have anything like a printer configured

Code:
rp|remote line printer:\
        :lp=:rm=192.168.222.244:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
Now a status check
Code:
$ lpc status
rp:
        queuing is enabled
        printing is enabled
        3 entries in spool area
        waiting for 192.168.222.244 to come up
If I do lpr -Prp <quotes.txt I get
Code:
$ lpc status           
rp:
        queuing is enabled
        printing is enabled
        4 entries in spool area
        waiting for 192.168.222.244 to come up
One more job in the spool area..

My firewall on my box is blocking port 515, that is why it is waiting ...
Code:
04:51:48.710783 rule 20/(match) block out on re0: 
192.168.222.20.925 > 192.168.222.244.515: S 3733580883:3733580883(0)
 win 16384 <mss 1460,nop,nop,sackOK,nop,wscale 0,[|tcp]> (DF)
What is the output on your box of lpc status ?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote