Bug 276981

Summary: CUPS - Unable to handle client address in hosts.allow
Product: [openSUSE] openSUSE 10.2 Reporter: Forgotten User PzXOktpH6D <forgotten_PzXOktpH6D>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED DUPLICATE QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i386   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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 ***