proftpd-mod_proxy icon indicating copy to clipboard operation
proftpd-mod_proxy copied to clipboard

Reverse Proxy examples

Open tuaititecnologia opened this issue 7 years ago • 2 comments

Hello. I'm trying to configure ProFTPd as a reverse proxy FTP. I can't find enough information for creating a configuration file. Is there any examples I can start with?

I've seen the examples here: https://github.com/Castaglia/proftpd-mod_proxy/blob/master/mod_proxy.html But I wish I could have an entire proftpd.conf example.

Best regards.

Alejandro.

tuaititecnologia avatar Sep 12 '18 23:09 tuaititecnologia

I try not to provide the entire proftpd.conf as an example, because many people would copy it verbatim, and then ask why it doesn't work. There are many, many things that are site-specific, and thus providing a full proftpd.conf that works for every site -- especially for proxying -- is very hard.

What specific issues/questions are you hoping to address, that you would be hoping to see in a full example proftpd.conf?

Castaglia avatar Sep 17 '18 14:09 Castaglia

Here is an example that you can put in conf.d/ :

LoadModule mod_proxy.c
ProxyEngine On
ProxyTables /dev/shm/proftpd_mod_proxy
ProxyLog /var/log/proftpd/proxy.log
#TraceLog /var/log/proftpd/trace.log
#Trace proxy:20 proxy.ftp.conn:20 proxy.ftp.ctrl:20 proxy.ftp.data:20 proxy.ftp.msg:20 proxy.ftp.xfer:20
SQLNamedQuery getBackend SELECT "CONCAT('ftp://', server_hostname) FROM ftp_account WHERE ftp_user = '%{0}'"
ProxyRole reverse
ProxyReverseConnectPolicy PerUser
ProxyReverseServers sql:/getBackend
#ProxyTLSEngine off
#ProxyTLSVerifyServer off
#ProxyTimeoutConnect 4sec
#ProxyTLSTimeoutHandshake 5sec
#ProxySourceAddress 19.40.42.11

jb-boin avatar Sep 17 '18 14:09 jb-boin