Ftp MODE Z problem

+1 vote

Hello
I start to use FileZilla Server as ftp server for testing and gest some trouble. Filezilla is configured to support MODE Z, but not for lan IP (like 192.168.0.216).

Unfortunaltelly after FEAT command server response is:

(000062)2018-01-02 17:44:04 - (192.168.0.216)> FEAT
(000062)2018-01-02 17:44:04 - (192.168.0.216)> 211-Features:
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  MDTM
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  REST STREAM
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  SIZE
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  MODE Z
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  MLST type*;size*;modify*;
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  MLSD
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  AUTH SSL
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  AUTH TLS
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  PROT
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  PBSZ
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  UTF8
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  CLNT
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  MFMT
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  EPSV
(000062)2018-01-02 17:44:04 - (192.168.0.216)>  EPRT
(000062)2018-01-02 17:44:04 - (192.168.0.216)> 211 End

so shows it supports compression.

When I try to connect using FTP.dll I get exception:

MODE Z not allowed from your IP

Yes, it' strue :) Is it possible to force FTP.dll not to send MODE Z in that situation?

asked Jan 3, 2018 by Michal

1 Answer

0 votes
 
Best answer

Please set Ftp.DontUseCompression before connection to true:

using (Ftp client = new Ftp())
{
    client.DontUseCompression = true;
    client.Connect("ftp.example.com");
answered Jan 3, 2018 by Limilabs support (237,290 points)
...