To reproduce: On a single-interface machine, enable sharing to a specific range of IP addresses (e.g 131.215.0.0/255.255.0.0) and activate. Expected: it works or a warning is issued. Actual: r-c-p adds a correct Allow to the cupsd.conf, but adds a single "Listen" - "Listen 127.0.0.1:631". As a result, the specified range of IP addresses do _not_ have the access they are supposed to have. The workaround seems to be to allow sharing on the eth0 in addition to allowing for the specified range. This is very confusing, since the comments in cupsd.conf seems to imply that "@IF(eth0)" means "everything connected via eth0", which in case of a single-NIC machine whould mean "absolutely anybody"...
You don't say what version you are using. This is critical information, since there is a test package in the updates-testing channel to fix this. So which version of redhat-config-printer are you using?
Sorry, redhat-config-printer-0.6.79.2-1
Please try this first: http://www.redhat.com/archives/fedora-test-list/2004-February/msg00054.html
Same problem still there. If I only ask for access to be allowed from 131.215.0.0/255.255.0.0, then the only "Listen" I get is "Listen 127.0.0.1:631", which means that no access is actually granted. Specifically, what I get is: <Location /printers/hp2300d> Order Deny,Allow Deny From All Allow From 127.0.0.1 AuthType None Allow from 131.215.0.0/255.255.0.0 </Location> <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 </Location> Browsing On BrowseProtocols cups BrowseOrder Deny,Allow BrowseDeny from All Listen 127.0.0.1:631
What does /sbin/ifconfig say?
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX inet addr:131.215.abc.def Bcast:131.215.abc.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:635056 errors:0 dropped:0 overruns:1 frame:0 TX packets:195282 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:98710133 (94.1 Mb) TX bytes:39857027 (38.0 Mb) Interrupt:10 Base address:0xd800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:19265 errors:0 dropped:0 overruns:0 frame:0 TX packets:19265 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11243704 (10.7 Mb) TX bytes:11243704 (10.7 Mb)
Okay, this is the unfixed part of bug #109942.
There are now test update packages available for Fedora Core 1, which should address the problem: http://www.redhat.com/archives/fedora-test-list/2004-February/msg00231.html Please test them out and verify that the problem is indeed fixed. Thanks.
Confirming, redhat-config-printer-0.6.79.5-1 fixes this for me.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-071.html