Rsync Verbindung zur BackupHD verschlüsseln/en

Aus EUserv Wiki

Wechseln zu: Navigation, Suche

Encrypt the Rsync connection to the BackupHD

Inhaltsverzeichnis

Encrypt the Rsync connection to the BackupHD

General

Hint: To use rsync for your BackupHD, you have to activate the function in the customer center. To do so navigate to the menu-point "Verwaltung" after you have chosen your contract and make the tick under "Rsync active".

Then click on the button "Ändern". Your BackupHD will be activated within 24 hours for rsync.

If you want to encrypt the rsync-connection to your BackupHD, you have the possibility to set an stunnel.

By that the connection to your BackupHD will be encrypted via SSL.

This instruction describes the setup of stunnel under Linux and Windows.


Linux:

First you have to install stunnel on your system. There should be a package available for your package manager.


for example:

Debian/Ubuntu: # aptitude install stunnel
CentOS: # yum install centos
Gentoo: # emerge stunnel
OpenSuse: # zypper install stunnel

Now you have to create or customize the stunnel configuration file:

# vi /etc/stunnel/stunnel.conf

  
# client = yes | no
# client mode (remote service uses SSL)
# default: no (server mode)
client = yes

# Certificate/key is needed in server mode and optional in client mode
#cert = /etc/ssl/certs/stunnel.pem
#key = /etc/ssl/certs/stunnel.pem

pid = /var/run/stunnel.pid

# Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
#compression = zlib

# The module for the EUserv BackupHD
[ssync]
accept = 873
connect = rsync1.euserv.de:273

# Some debugging stuff useful for troubleshooting
debug= 5
output = /var/log/stunnel.log
   

Now you can start stunnel:

# stunnel /etc/stunnel/stunnel.conf


The use of rsync:

For an stunnel encrypred through the rsync-connection you can specify localhost as server:


for example

# rsync -avuz /dev/zero ftpbackup-1234@localhost::ftpbackup-1234

Exiting stunnel:

# killall stunnel


Setting up stunnel under Windows

You can also set stunnel manually in Windows.

The necessary program can be downloaded at http://www.stunnel.org/.

Now you just have to edit the configuration file. You can find a link in the start menu .

Ensure that the option client=yes is not commented out.

   
client = yes
[ssync]
accept = 873
connect = rsync1.euserv.de:273
    

Now you can start stunnel from the start menu.

You can use Rsync under Windows e.g. with the free tool DeltaCopy.