Reverse Proxy examples
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.
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?
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