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

question about directive ProxyDirectoryListPolicy #278

Open
shunshunbu opened this issue Aug 15, 2024 · 6 comments
Open

question about directive ProxyDirectoryListPolicy #278

shunshunbu opened this issue Aug 15, 2024 · 6 comments

Comments

@shunshunbu
Copy link

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

@Castaglia
Copy link
Owner

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

@Castaglia
Copy link
Owner

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?

@shunshunbu
Copy link
Author

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
Copy link
Author

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

@Castaglia
Copy link
Owner

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 added a commit that referenced this issue Sep 14, 2024
… an unrelated issue when running mod_proxy + remote server in a Docker Compose setup. The issue is related to the timing of when we compare the address families of our local bind address vs the remote data address; unfortunately this comparison was occurring _before_ the local bind address variable had been set.
@Castaglia
Copy link
Owner

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.

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

No branches or pull requests

2 participants