Adding configuration for stunnel test (using stunnel to tunnel rsync traffic)
This commit is contained in:
parent
f1b0a8c55b
commit
9cb7c2a869
14
testing/stunnel/README
Normal file
14
testing/stunnel/README
Normal file
@ -0,0 +1,14 @@
|
||||
configuration for stunnel'ing rsync daemon
|
||||
|
||||
stunnel.pem, daemon.conf and client.conf belongs in /etc/stunnel/
|
||||
|
||||
start rsync dameon using the configuration from trunk/testing/rsync
|
||||
|
||||
start the ssl server
|
||||
stunnel /etc/stunnel/daemon.conf
|
||||
start the ssl client
|
||||
stunnel /etc/stunnel/client.conf
|
||||
connect to rsync server over ssl from local box via a different port 837837
|
||||
rsync rsync://localhost:837837
|
||||
|
||||
|
10
testing/stunnel/client.conf
Normal file
10
testing/stunnel/client.conf
Normal file
@ -0,0 +1,10 @@
|
||||
#
|
||||
client = yes
|
||||
|
||||
debug = 7
|
||||
foreground = yes
|
||||
#output = rsync-stunnel-client.log
|
||||
|
||||
[RSYNC]
|
||||
accept=localhost:837837
|
||||
connect=localhost:2222
|
15
testing/stunnel/daemon.conf
Normal file
15
testing/stunnel/daemon.conf
Normal file
@ -0,0 +1,15 @@
|
||||
#configuration for daemon
|
||||
|
||||
#RNDbytes = 2048
|
||||
#RNDfile = rand.bin
|
||||
#RNDoverwrite = yes
|
||||
|
||||
cert = /etc/stunnel/stunnel.pem
|
||||
|
||||
debug = 7
|
||||
foreground = yes
|
||||
#output = rsync-stunnel-daemon.log
|
||||
|
||||
[RSYNC]
|
||||
accept=localhost:2222
|
||||
connect=localhost:873
|
36
testing/stunnel/stunnel.pem
Normal file
36
testing/stunnel/stunnel.pem
Normal file
@ -0,0 +1,36 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIICXAIBAAKBgQCmD+mhtQH5B97Uh0q7zOzA+aRDgS1hx0p1EuO3ur45pX2YzN50
|
||||
qB7daBTBKkkhev+xThF4pQeeMSxAq+iUrHmDwxVr8gh6fvuwWaSN4DeybzAj8MCx
|
||||
5hiUHfWt3QvjTR+X58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||
MTAyODE4MTkwN1owgYExCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJNRDERMA8GA1UE
|
||||
BxMIY29sdW1iaWExEjAQBgNVBAoTCVNlbGYgSW5jLjELMAkGA1UECxMCc3cxEDAO
|
||||
BgNVBAMTB2dpYmJvbnMxHzAdBgkqhkiG9w0BCQEWEHJvb3RAZ2liYm9ucy5vcmcw
|
||||
gZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKYP6aG1AfkH3tSHSrvM7MD5pEOB
|
||||
LWHHSnUS47e6vjmlfZjM3nSoHt1oFMEqSSF6/7FOEXilB54xLECr6JSseYPDFWvy
|
||||
CHp++7BZpI3gN7JvMCPwwLHmGJQd9a3dC+NNH5fnyv5/XpQ+xTfZk786M93KZJNG
|
||||
zJsWQbgckeh5fY2dAgMBAAGjgekwgeYwHQYDVR0OBBYEFNiKZTCIS8ggRE+fX2v6
|
||||
wIT0luJSMIG2BgNVHSMEga4wgauAFNiKZTCIS8ggRE+fX2v6wIT0luJSoYGHpIGE
|
||||
MIGBMQswCQYDVQQGEwJVUzELMAkGA1UECBMCTUQxETAPBgNVBAcTCGNvbHVtYmlh
|
||||
MRIwEAYDVQQKEwlTZWxmIEluYy4xCzAJBgNVBAsTAnN3MRAwDgYDVQQDEwdnaWJi
|
||||
b25zMR8wHQYJKoZIhvcNAQkBFhByb290QGdpYmJvbnMub3JnggkAhcrHSnnKziMw
|
||||
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCat7KISbItYomwbVQOcInx
|
||||
p6qp0QJR591SMgVZMqjhedGdGcKzcwk01n5/2pi7IMSubMupP2Fz3RjK0ZWMQkTG
|
||||
HqQ0DXF/EC5+Zi6P27yTBQCJScrKYDaojgdZ/ZR51icWpCiBHZmjnxRGTGXzHGml
|
||||
O1fZr++ppYMk7VJB40t2Lw==
|
||||
-----END CERTIFICATE-----
|
Loading…
Reference in New Issue
Block a user