Bug 276981 - CUPS - Unable to handle client address in hosts.allow
Summary: CUPS - Unable to handle client address in hosts.allow
Status: RESOLVED DUPLICATE of bug 230730
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Printing (show other bugs)
Version: Final
Hardware: i386 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 14:20 UTC by Forgotten User PzXOktpH6D
Modified: 2007-05-22 14:29 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User PzXOktpH6D 2007-05-22 14:20:05 UTC
I have had to remove all entries from thr hosts.all and hosts.deny in order to get cups to work.  These computers are now in violation of security requirements by not having entries in hosts.allow and hosts.deny.  The format I have been useing for the hosts.all has been working on all other os's (fedora, cent, redhat, gentoo)  There is only a problem with cups on opensuse10.2, 10.0 is working fine .


hosts.allow
ALL: 127.0.0.0/255.255.255.0
ALL: 192.168.0.0/255.255.255.0 
ALL: 160.107.109.128/255.255.255.128

*
* This is a copy of what I posted in the opensuse.us forum.  I have received no answer to my post.
*

I am having a problem with my hosts .allow and cups. CUPS keeps given errors in /var/log/messages with the following hosts.allow: 

[1]#hosts.allow on all linux computers 
ALL: 127.0.0.0/255.255.255.0 
ALL: 192.168.0.0/255.255.255.0 
ALL: 160.XXX.XXX.0/255.255.255.128 #XXX replaces acutral address

cupsd: warning: /etc/hosts.allow, line 1: Unable to handle client address: unknown Repeated for each line. 

To test this I am using tail -f /var/log/messages and open then close the yast2 printer config. 

The error is "cupsd: warning: /etc/hosts.allow, line 1: Unable to handle client address: unknown" repeated for each line in the file. 

[2] Changed hosts.allow to the following: 
ALL: 127.0.0. 
ALL: 192.168.0. 
ALL: 160.XXX.XXX. 

CUPSD gives same error. 

[3] Changed hosts.allow to the following: 
ALL: 127.0.0 
ALL: 192.168.0 
ALL: 160.XXX.XXX 

CUPSD does not give any errors but takes a long time to close. Also APCUPSD and PORTMAPER start giving errors. 
apcupsd[4267]: Connection from 192.168.1.254 refused by tcp_wrappers. 
portmap[20425]: connect from 192.168.1.3 to getport(ypserv): request from unauthorized host 

[4] Changed hosts.allow to the following 
ALL: LOCAL 
ALL: .gig 
ALL: .rdte 

Same as [3] but only portmap giving errors. 

[5] If I clear both the hosts.allow and hosts.deny the printer config util exits it just a few seconds. 

[6]Changed the hosts.allow to a mix [1] and [4] 
ALL: LOCAL 
ALL: .gig 
ALL: .hspacig 
ALL: 127.0.0.0/255.255.255.0 
ALL: 192.168.0.0/255.255.255.0 
ALL: 160.XXX.XXX.0/255.255.255.128 

CUPSD gives error on lines 4,5 and 6. 

CUPSD is not getting a connection refuesed it says that it can not read the line. They must be correct, all other services are working fine and dont give any errors unless there is a connection from and outside source. I am useing config [1] on redhat , fedora, cent, gentoo, and opensuse and the only problem seems to be with cups on suse. Does any one know how to fix this, or are having the same problem? 

Thanks 
Dave
Comment 1 Johannes Meixner 2007-05-22 14:29:03 UTC

*** This bug has been marked as a duplicate of bug 230730 ***