Discussion:
[Proftpd-devel] Problems with mod_proxy
(too old to reply)
p***@w3eta.net
2015-10-13 17:27:37 UTC
Permalink
I've been experimenting with mod_proxy as a reverse proxy, and so far have not
been able to get the data connection to work with TLS.

The control connection works fine with TLS, but any command that creates a data
connection fails with "tls_getc SSL_ERROR_SSL" displayed at the client. Then
eventually the control connection will timeout. If I use passive mode, then the
first data connection is successful, but the next data connection associated
with that control connection fails.

I have all the certificate verification turned off. The client has no trouble
connecting to the backend ftp server, and the proxy works as expected with TLS
turned off.

Both that backend and proxy servers are ProFTPD 1.3.6rc2 cloned from github.

I've spent the last several days looking through logs and the source code, and
trying different configuration options. I'm still not sure if I'm doing
something wrong or there is bug somewhere.

Any suggestions on things to try, or where to look? Or details you might need
to help diagnose?
--
Dan Campbell
TJ Saunders
2015-10-13 17:46:02 UTC
Permalink
Post by p***@w3eta.net
I've been experimenting with mod_proxy as a reverse proxy, and so far
have not been able to get the data connection to work with TLS.
The data connection on the frontend (i.e. from/to the FTP client), or on
the backend (to/from the backend server)?
Post by p***@w3eta.net
The control connection works fine with TLS, but any command that creates
a data connection fails with "tls_getc SSL_ERROR_SSL" displayed at the client.
Then eventually the control connection will timeout. If I use passive mode,
then the first data connection is successful, but the next data connection
associated with that control connection fails.
Could you provide the proftpd.conf files (for proxy and backend servers)
used, the ProxyLog, and the proftpd debug logging, debug level 10, for
each of the servers?

Cheers,
TJ

------------------------------------------------------------------------------
p***@w3eta.net
2015-10-13 20:54:42 UTC
Permalink
Post by TJ Saunders
Post by p***@w3eta.net
I've been experimenting with mod_proxy as a reverse proxy, and so far
have not been able to get the data connection to work with TLS.
The data connection on the frontend (i.e. from/to the FTP client), or on
the backend (to/from the backend server)?
I believe the failure is with the backend data connection.
Post by TJ Saunders
Post by p***@w3eta.net
The control connection works fine with TLS, but any command that creates
a data connection fails with "tls_getc SSL_ERROR_SSL" displayed at the
client.
Then eventually the control connection will timeout. If I use passive mode,
then the first data connection is successful, but the next data connection
associated with that control connection fails.
Could you provide the proftpd.conf files (for proxy and backend servers)
used, the ProxyLog, and the proftpd debug logging, debug level 10, for
each of the servers?
I will email the files directly.

--
Dan Campbell
TJ Saunders
2015-11-11 23:25:44 UTC
Permalink
Post by p***@w3eta.net
I've been experimenting with mod_proxy as a reverse proxy, and so far
have not been able to get the data connection to work with TLS.
I worked with Dan off-list on this issue, and am pleased to report that
the TLS-related issue he was encountering in mod_proxy was a valid bug,
which has now been fixed.

Cheers,
TJ

------------------------------------------------------------------------------
Loading...