mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-21 21:38:18 -05:00
Added the client rsync-ssl script and various client/daemon support files needed for talking to an rsync daemon over SSL on port 874 (no tls support). This uses an elegant stunnel setup that was detailed by dozzie (see the resources page) now that stunnel4 has improved command-spawning support. Also incorporates some tweaks by devzero (e.g. the nice no-tmpfile-config client-side code) and a few by me (including logging of the actual remote IP that came in to the stunnel process). This probably still needs a little work.
13 lines
334 B
Bash
Executable File
13 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
# This script supports using stunnel to secure an rsync daemon connection.
|
|
# Note that this requires at least version 4.x of stunnel.
|
|
case "$@" in
|
|
*rsync://*) ;;
|
|
*::*) ;;
|
|
*)
|
|
echo "You must use rsync-ssl with a daemon-style hostname." 0>&1
|
|
exit 1
|
|
;;
|
|
esac
|
|
exec @bindir@/rsync --rsh=@bindir@/stunnel-rsync "${@}"
|