Looks like nobody has answered this yet.
I haven't tested it or looked at the code, but according to my reading of
the rsyncd.conf man page, that's not a supported syntax for hosts allow.
If you specify a "/netmask", the first portion has to be an IP address
and
not a hostname.
- Dave Dykstra
On Fri, Dec 14, 2001 at 03:46:29PM -0500, Kornmesser, Craig
wrote:> Any time I try and setup a hosts allow option in the modules I get the
> following errors:
>
> I'm running this from the client.
>
> rsync -rv ws2743::test3 /pw/prog/BOS/stuff
> @ERROR: access denied to test3 from unknown (::3)
> rsync: connection unexpectedly closed (62 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(139)
>
> I get the following from the log file on the rsync server:
>
> 2001/12/14 14:50:25 [5121] rsync denied on module test1 from unknown (::3)
> 2001/12/14 14:56:05 [5203] reverse name lookup failed
> 2001/12/14 14:56:05 [5203] rsync: forward name lookup for failed:
> host/servname not known
> 2001/12/14 14:56:05 [5203] rsync denied on module test2 from unknown (::3)
>
>
> My /etc/rsync.conf file looks like the following:
>
> log file = /pw/prog/BOS/log/rsyncd.log
> pid file = /pw/prog/BOS/log/rsyncd.pid
>
> [test]
> path = /pw/prog/BOS/stuff
> comment = My Very Own Rsync Server
> list = yes
> [test1]
> path = /pw/prog/BOS/stuff
> comment = My Very Own Rsync Server
> list = yes
> hosts allow = ws2743/255.255.0.0
> [test2]
> path = /pw/prog/BOS/stuff
> comment = My Very Own Rsync Server
> list = yes
> hosts allow = ws3835/255.255.0.0
>
> If I run with module test that doesn't have the "hosts allow"
option I'm
> able to transfer files. Any ideas?