Friday, September 25, 2015

"Operation not permitted" when using AndFTP to connect a proftpd server with TLS enabled

Symptom:
- Android AndFTP could not connect to a proftpdd server when TLS encryption is used
- The last message seen on the Android AndFTP software looks like:
425 Unable to build data connection: Operation not permitted
- The issue is not observed in FileZilla 3.9 running in Windows 7

Cause:
The Android AndFTP software attempts to create new session for data connection (or something similar) which is not allowed by default in the proftpd tls configuration.

Solution:
Add the "NoSessionReuseRequired" option to "/etc/proftpd/tls.conf"
TLSOptions                 NoCertRequest AllowClientRenegotiations NoSessionReuseRequired

Reference:
http://www.proftpd.org/docs/howto/TLS.html

No comments:

Post a Comment