Added gateway support to rsync