View Single Post
  #1   (View Single Post)  
Old 26th April 2012
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Question Setting up OpenBSD rsync server...how?

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:

Code:
rsync           stream  tcp     nowait  root    /usr/local/bin/rsync --daemon
I kill -HUP'd inetd and then setup /etc/rsyncd.conf:

Code:
max connections = 1
log file = /var/log/rsync.log
timeout = 300
[stuff]
comment = some server stuff
path = /stuff
read only = yes
list = yes
uid = root
gid = root
hosts allow = 1.2.3.4/32
exclude from = /etc/rsync_exclude.txt
Over on a Linux box (this is in hosts allow), I did this:

Code:
rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete someserver.example.com::stuff .
But got:

Code:
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.
Reply With Quote