Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse Proxy examples #135

Open
tuaititecnologia opened this issue Sep 12, 2018 · 2 comments
Open

Reverse Proxy examples #135

tuaititecnologia opened this issue Sep 12, 2018 · 2 comments
Assignees

Comments

@tuaititecnologia
Copy link

tuaititecnologia commented Sep 12, 2018

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.

@Castaglia Castaglia self-assigned this Sep 17, 2018
@Castaglia
Copy link
Owner

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?

@jb-boin
Copy link

jb-boin commented Sep 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants