Page 1 of 1

Can't enable passive mode

Posted: 2019-07-03 13:34
by Lenator
I was trying to set up an FTP Server with Filezilla Server, but when I was trying to connect to the server I got this:
(000015)03.07.2019 16:39:50 - (not logged in) (178.127.67.219)> Connected on port 21, sending welcome message...
(000015)03.07.2019 16:39:50 - (not logged in) (178.127.67.219)> 220 Кхм...
(000015)03.07.2019 16:39:50 - (not logged in) (178.127.67.219)> USER root
(000015)03.07.2019 16:39:50 - (not logged in) (178.127.67.219)> 331 Password required for root
(000015)03.07.2019 16:39:50 - (not logged in) (178.127.67.219)> PASS ******************
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 230 Logged on
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> SYST
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 215 UNIX emulated by FileZilla
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> PWD
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 257 "/" is current directory.
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> TYPE I
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 200 Type set to I
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> SIZE /
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 550 File not found
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> CWD /
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 250 CWD successful. "/" is current directory.
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> PASV
(000015)03.07.2019 16:39:50 - root (178.127.67.219)> 227 Entering Passive Mode (178,127,67,219,215,9)
(000015)03.07.2019 16:39:51 - root (178.127.67.219)> QUIT
(000015)03.07.2019 16:39:51 - root (178.127.67.219)> 221 Goodbye
(000015)03.07.2019 16:39:51 - root (178.127.67.219)> disconnected.
So the passive mode can't enable with command PASV.
Help me, please.
------Sorry for my English------

Re: Can't enable passive mode

Posted: 2019-07-03 14:54
by botg
What does it say in the client log?

Re: Can't enable passive mode

Posted: 2019-07-03 18:26
by Lenator
Connecting with 178.127.67.219:21 ...
Status: Connection established, waiting for invitation ...
Status: Insecure server, does not support FTP over TLS.
Status: Authorized
Status: Getting a list of directories ...
Team: PWD
Answer: 257 "/" is current directory.
Team: TYPE I
Answer: 200 Type set to I
Team: PASV
Answer: 227 Entering Passive Mode (178,127,67,219,228,224)
Team: MLSD
Error: Data connection cannot be established: ECONNREFUSED - Connection rejected by server
Answer: 425 Can't open data connection for transfer of "/"

Re: Can't enable passive mode

Posted: 2019-07-03 19:53
by boco
Both client and server log must be from the same session. Yours either aren't, or something evil is going on. The commands/responses are not matching up. Additionally, FileZilla does not send the QUIT command, ever.

Re: Can't enable passive mode

Posted: 2019-07-04 08:03
by botg
Yup, definitely a malicious firewall sabotaging the data.