I'm trying to setup an OpenBSD box to act as an rsync server.
I installed the rsync package, then put this in /etc/inetd.conf:
rsync stream tcp nowait root /usr/local/bin/rsync --daemon
I kill -HUP'd inetd and then setup /etc/rsyncd.conf:
max connections = 1
log file = /var/log/rsync.log
timeout = 300
comment = some server stuff
path = /stuff
read only = yes
list = yes
uid = root
gid = root
hosts allow = 126.96.36.199/32
exclude from = /etc/rsync_exclude.txt
Over on a Linux box (this is in hosts allow), I did this:
rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete someserver.example.com::stuff .
rsync: server sent "rsync version 3.0.8 protocol version 30" rather than greeting
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]
An identical rsyncd.conf and rsync client command works Linux-to-Linux, though in that case it's xinetd not inetd. I'm wondering if there is something BSD-specific?
Given that error, looks to me like the client can talk to port 873 (and pf has not been setup yet), so I don't think it's a firewall issue. I also took out the hosts allow line and it didn't make a difference.