Bug 344731 - Rsync "hosts allow" option works with IPv6 address but not with IPv4
Summary: Rsync "hosts allow" option works with IPv6 address but not with IPv4
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rsync
Version: 4.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Jan Zeleny
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-21 21:51 UTC by David Tonhofer
Modified: 2010-03-12 08:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-12 08:34:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description David Tonhofer 2007-10-21 21:51:50 UTC
Description of problem:
-----------------------

The rsync program allows to restrict the origin of connections to an rsync
server instance by using the "hosts allow" directive in the rsyncd.conf
configuration file (or an other configuration file, as the case may be). See
rsyncd.conf(5).

The man page indicates that IPv4 or IPv6 addresses can be used as values to
"hosts allow".

However, if one uses an IPv4 address A.B.C.D as value (on a system where IPv6 is
enabled but not actively used) then the address of the connecting client is not
recognized. For example:

In case of "hosts allow = 88.207.188.205" the logfile say:

----------
forward name lookup for ip-88-207-188-205.dyn.luxdsl.pt.lu failed: Name or
service not known
rsync denied on module mayas-twiki-snapshot from unknown (::ffff:88.207.188.205)
----------

However,

In case of "hosts allow = ::ffff:88.207.188.205" the logfile say:

----------
forward name lookup for ip-88-207-188-205.dyn.luxdsl.pt.lu failed: Name or
service not known
rsync allowed access on module mayas-twiki-snapshot from unknown
(::ffff:88.207.188.205)
----------

...which is nice. So the workaround is straightforward. 

Note: I did not find an rsync bugzilla entry concerning this problem.

Version-Release number of selected component (if applicable):

rsync-2.6.3-1

How reproducible:

Always

Comment 1 David Tonhofer 2008-07-28 19:18:56 UTC
Just moved this to RHL5. 

hosts allow = ::ffff:88.207.188.205 will now fail

but 

hosts allow = 88.207.188.205 will succeed

Comment 2 Jan Zeleny 2010-03-05 10:16:17 UTC
Could you please provide reference to RHEL5 bug if one exists? Since there is only one more release of RHEL4 planned and it will be focused on performance and security, this bug most likely won't be fixed in RHEL4.

Comment 3 David Tonhofer 2010-03-11 18:46:33 UTC
Hi

There doesn't seem to be any (as it actually works in RHEL5). Well, this bug can probably be disregarded as there are no "Me Too"s to it, right? Also, it's old.

Comment 4 Jan Zeleny 2010-03-12 08:34:39 UTC
Yes, that's my opinion as well. Thanks for cooperation, I'm closing this bug as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.