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

question about directive ProxyDirectoryListPolicy

Open shunshunbu opened this issue 1 year ago • 6 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

shunshunbu avatar Aug 15 '24 06:08 shunshunbu

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

Castaglia avatar Aug 16 '24 14:08 Castaglia

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?

Castaglia avatar Aug 16 '24 14:08 Castaglia

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

shunshunbu avatar Aug 19 '24 01:08 shunshunbu

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

shunshunbu avatar Aug 19 '24 01:08 shunshunbu

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.

Castaglia avatar Sep 14 '24 15:09 Castaglia

One thing you might try is to disable MLSD support in ProFTPD, so that FileZilla uses LIST, by adding this to your configuration:

<IfModule mod_facts.c>
  FactsAdvertise off
</IfModule>

See FactsAdvertise for details.

Castaglia avatar Sep 21 '24 19:09 Castaglia