Castaglia/proftpd-mod_proxy

question about directive ProxyDirectoryListPolicy

Opened this issue · 5 comments

When I use the filezilla client to directly connect to the vsftpd server, the client displays as shown below:

1

When I use the proxy and configure this #21 directive, the client displays as shown below:
2
The difference between the above two pictures is that after using the proxy, the file list of the remote site is not output.Can you tell me the reason?

The configuration is as shown below:
3
4

Could you provide the full mod_proxy config you're using (not just screenshots), along with ProFTPD debug logging and the ProxyLog, please?

Also, it looks like FileZilla is using the MLSD FTP command, and you have configured mod_proxy to "translate" that into the LIST FTP command. What happens if you remove that ProxyDirectoryListPolicy directive?

Also, it looks like FileZilla is using the MLSD FTP command, and you have configured mod_proxy to "translate" that into the LIST FTP command. What happens if you remove that ProxyDirectoryListPolicy directive?

Yes, you are right.
The phenomenon is actually the same as this issue #21 I configured and used the ProxyDirectoryListPolicy command to solve the problem of filezilla sending the MLSD command and vsftpd not supporting this command, causing the connection to fail and reporting an error directly.
Like this :

5

Could you provide the full mod_proxy config you're using (not just screenshots), along with ProFTPD debug logging and the ProxyLog, please?

Sorry, since I am on the intranet, it is more convenient for me to use screenshotsThe configuration is as follows:
9
10

log like this :
8

Hmm. I see some unknown configuration directives in your configuration:

KafkaLogSwitch on
UploadCheckSwitch on
UploadCheckTemplateCode 1
DownloadCheckSwitch on
DownloadCheckTemplateCode 1

as well as some unknown log messages:

<proxy:11> SendDelPolicy :http_policy_data_link_id 800003 del ok

which suggest that you are running with some custom patches/changes. Without knowing that those customizations are, what they do, I cannot say whether they are related to any issues you are seeing.