Unix Technical Forum

Re: Setting up network access for a CUPS printer

This is a discussion on Re: Setting up network access for a CUPS printer within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Andreas Janssen wrote: Thanks for your response. >>>> I have an HP OfficeJet K80 Xi connected to /dev/lp0 of ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 02:21 PM
Madhusudan Singh
 
Posts: n/a
Default Re: Setting up network access for a CUPS printer

Andreas Janssen wrote:

Thanks for your response.

>>>> I have an HP OfficeJet K80 Xi connected to /dev/lp0 of a machine on
>>>> my network which has a firewall. I have opened the ipp port (631) on
>>>> that machine
>>>
>>> TCP and UDP?
>>>

>> TCP

>
> Maybe Cups also needs UDP support. This is at least used for browsing, I
> don't know if it is required if you know the IPs of printer and client.
> But it would be worth a try.


Done. Restarted the firewall.

Restarted the cups server :

cupsd: Child exited with status 98!
cups: restarted scheduler.
root@host:~# lpstat -v
system for hpoj: localhost
system for NetworkPrinter: localhost
system for all: localhost
Printer 'hpoj@localhost' - cannot open connection - No such file or
directory
Make sure the remote host supports the LPD protocol
Printer 'NetworkPrinter@localhost' - cannot open connection - No such file
or directory
Make sure the remote host supports the LPD protocol
Printer 'all@localhost' - cannot open connection - No such file or directory
Make sure the remote host supports the LPD protocol

NetworkPrinter is a printer class that contains hpoj (the printer of
interest).

I get the same error as before.

>
>> [...]

>
>>> Can you telnet to the port on the host?

>>
>> No.
>>
>> งป telnet 192.168.1.1:631
>> telnet: could not resolve 192.168.1.1:631/telnet: Name or service not
>> known

>
> Wrong syntax, try
>
> telnet 192.168.1.1 631


Oops.

งป telnet 192.168.1.1 631
Trying 192.168.1.1...
telnet: Unable to connect to remote host: Connection refused

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 02:22 PM
Madhusudan Singh
 
Posts: n/a
Default Re: Setting up network access for a CUPS printer

Andreas Janssen wrote:

Thanks for your response.

>> Done. Restarted the firewall.
>>
>> Restarted the cups server :
>>
>> cupsd: Child exited with status 98!
>> cups: restarted scheduler.
>> root@host:~# lpstat -v
>> system for hpoj: localhost
>> system for NetworkPrinter: localhost

>
> Toyed around with the Listen option, and it looks like it won't work
> unless you add the line for localhost:
>
> Listen 127.0.0.1:631
> Listen 192.168.1.1:631
>
> Try again after you changed that. By the way, take a look at
> netstat -ln -A inet
>
> It should show port 631 opened on the loopback and LAN interfaces.
>
> best regards
> Andreas Janssen
>


I tried what you suggested and I now suspect that the problem lies with my
firewall configuration. I cannot telnet to the host on port 631, even
though I have made an attempt to modify my firewall script
( http://www.eecs.umich.edu/~chhabra/slrcfirewall.txt ).

In particular, I have :

$IPTABLES -A INPUT -p UDP -i $LAN_IFACE -s 0/0 --dport $IPPPORT -j ACCEPT
$IPTABLES -A INPUT -p TCP -i $LAN_IFACE -s 0/0 --dport $IPPPORT -j ACCEPT

where $IPPPORT is 631.

Thanks for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com