[stunnel-users] stunnel via xinetd and rsync problem

campbellmc campbell.mcleay at gmail.com
Mon Jun 6 12:57:12 CEST 2011


Hi,

I am having problems getting stunnel to tunnel rsync connections when
stunnel is called from xinetd. I can get it to work fine when stunnel
is run as a daemon, but when I try rsyncing from the client via
xinetd, rsync complains:

[root at lambeth ~]# rsync -av  --port 2873 192.168.10.130::sanbackup .
rsync: server sent "2011.06.06 06:13:56 LOG7[18335:3086816976]:
Snagged 64 random bytes from /dev/urandom" rather than greeting
rsync error: error starting client-server protocol (code 5) at
main.c(1296) [receiver=2.6.8]
[root at lambeth ~]#

It appears that rsync on the client is getting the output of
/dev/urandom, and the connection is abandoned. Any suggestions on how
to avoid this?

stunnel.conf (client):

client = yes
pid = /var/run/stunnel.pid
connect = 192.168.10.240:2873
debug = 7
output = /var/log/stunnel.log
accept = 2873
cert = /etc/stunnel/lambeth.pem

xinetd config on client for rsync [ssync]

service ssync
{
	disable			= no
	port			= 2873
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/stunnel
	server_args		= /etc/stunnel/stunnel-rsync-client.conf
	log_on_success		+= USERID
	log_on_failure		+= USERID
}


Any help welcomed!

Regards,

-Cam



More information about the stunnel-users mailing list