[BlueOnyx:16349] Re: Pootle-Patchday Issues II : ProFTPd fixed (sort of)

Michael Stauber mstauber at blueonyx.it
Fri Oct 31 07:43:04 -05 2014


Hi Chris,

> So I had a look at /etc/xinetd.d/proftpd and here is line 12:
>          server_args             = -c /etc/proftpd.conf
> 
> And here is line 13:
>          server_args             = -4 -c /etc/proftpd.conf
> 
> Sure enough, sever_args are getting passed twice.

Doh. Where did that come from? <sigh>. But then again, there is more to
this mess.

Even FTPS is a constant hit and miss. You can test it from the command
line with "openssl s_client -connect <IP>:990"

For me that flip flops bwteeen giving the full cert information such as
this:

------------------------------------------------------------
mstauber at beast:~/$ openssl s_client -connect 5108r.smd.net:990
CONNECTED(00000003)
depth=0 C = CO, ST = Quindio, L = Armenia, O = SOLARSPEED.NET, OU =
SMD.NET, CN = 5108r.smd.net, emailAddress = mstauber at solarspeed.net
verify error:num=18:self signed certificate
verify return:1
depth=0 C = CO, ST = Quindio, L = Armenia, O = SOLARSPEED.NET, OU =
SMD.NET, CN = 5108r.smd.net, emailAddress = mstauber at solarspeed.net
verify return:1
---
Certificate chain
 0
s:/C=CO/ST=Quindio/L=Armenia/O=SOLARSPEED.NET/OU=SMD.NET/CN=5108r.smd.net/emailAddress=mstauber at solarspeed.net

i:/C=CO/ST=Quindio/L=Armenia/O=SOLARSPEED.NET/OU=SMD.NET/CN=5108r.smd.net/emailAddress=mstauber at solarspeed.net
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDtjCCAp4CCQDvxpgbNeVBlzANBgkqhkiG9w0BAQUFADCBnDELMAkGA1UEBhMC
Q08xEDAOBgNVBAgMB1F1aW5kaW8xEDAOBgNVBAcMB0FybWVuaWExFzAVBgNVBAoM
DlNPTEFSU1BFRUQuTkVUMRAwDgYDVQQLDAdTTUQuTkVUMRYwFAYDVQQDDA01MTA4
ci5zbWQubmV0MSYwJAYJKoZIhvcNAQkBFhdtc3RhdWJlckBzb2xhcnNwZWVkLm5l
dDAeFw0xNDAyMTgxNjQ4NDdaFw0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ress=mstauber at solarspeed.net
issuer=/C=CO/ST=Quindio/L=Armenia/O=SOLARSPEED.NET/OU=SMD.NET/CN=5108r.smd.net/emailAddress=mstauber at solarspeed.net
---
No client certificate CA names sent
---
SSL handshake has read 1466 bytes and written 431 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID:
92AC9FF07A9060243B92CC504F6BF1F15BA80DA7716F87889FC1EED2CF7601B3
    Session-ID-ctx:
    Master-Key:
A9A8A7D378185CE71C6BEF8694D2F43F8BE7D657E7BB834D5138D4485AD5FD330C2BB88A85519C94D90ACEE92299D0CB
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1414758809
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---
220 ProFTPD 1.3.5 Server (ProFTPD server) [208.67.251.187]
------------------------------------------------------------

And then sporadically and out of the blue it throws this:
------------------------------------------------------------
mstauber at beast:~/$ openssl s_client -connect 5108r.smd.net:990
CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 305 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
------------------------------------------------------------

When I reconnect or try a few times more (without restarting xinetd or
anything) its simply works again.

vsftpd anyone? I'm getting sick and tired of ProFTPd.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list