Opened 12 years ago

Last modified 9 years ago

#8652 new Bug report

active mode does not work with SOCKS 5 proxy

Reported by: Uwe Langhammer Owned by:
Priority: normal Component: FileZilla Client
Keywords: active mode socks proxy Cc:
Component version: Operating system type: Windows
Operating system version: Windows XP, Windows 7

Description

Hi,

there is a problem if I want to connect to a ftp server that ONLY supports active mode connections.

This is the FileZilla client output:
13:58:31 Status: Connecting to ftp-01.eurorscg.de through proxy
13:58:31 Status: Resolving address of proxy.oz.de
13:58:31 Status: Connecting to 10.1.224.211:1080...
13:58:31 Status: Connection with proxy established, performing handshake...
13:58:32 Status: Connection established, waiting for welcome message...
13:58:32 Response: 220 ftp-01.eurorscg.de X2 WS_FTP Server 7.5.1(64741463)
13:58:32 Command: USER username
13:58:32 Response: 331 Enter password
13:58:32 Command: PASS
13:58:32 Response: 230-User logged in
13:58:32 Response: Welcome to FTP Euro RSCG
13:58:32 Response: 230 User logged in
13:58:32 Status: Server does not support non-ASCII characters.
13:58:32 Status: Connected
13:58:32 Status: Retrieving directory listing...
13:58:32 Command: PWD
13:58:32 Response: 257 "/users/username" is current directory
13:58:32 Command: TYPE I
13:58:32 Response: 200 Transfer mode set to BINARY
13:58:32 Command: PASV
13:58:53 Error: Connection timed out
13:58:53 Error: Failed to retrieve directory listing

I have enabled Active-Mode in Transfer-Settings but FileZilla still sends the PASV command to the server to obtain the directory listing. That is where it stops.
Since I don't have access to the server and can't change anything on the server side it would be nice if you can have a look at this issue.
And the problem is not in my network configuration, because ws_ftp manages to connect to that server in active mode without any problems.
I even can reproduce the problem with a simple linux ftp command line client outside of our firewall. As soon as I send the PASV command to the server, it stops responding. Without the PASV command, the connection works fine.

Greetings,

Uwe.

Attachments (2)

DiagnosticReport.txt (1.9 KB ) - added by edwin17285 12 years ago.
anty
spider.sav (492 bytes ) - added by edwin17285 12 years ago.

Download all attachments as: .zip

Change History (6)

by edwin17285, 12 years ago

Attachment: DiagnosticReport.txt added

anty

by edwin17285, 12 years ago

Attachment: spider.sav added

comment:1 by Alexander Schuch, 12 years ago

Status: newmoreinfo

You are using a proxy. Can you disable proxy usage and try again?

comment:2 by Uwe Langhammer, 12 years ago

Status: moreinfonew

ok I never tried it without the proxy before, but then it seems to work fine:

Status: Resolving address of ftp-01.havasworldwide.de
Status: Connecting to 194.77.193.33:21...
Status: Connection established, waiting for welcome message...
Response: 220 ftp-01.eurorscg.de X2 WS_FTP Server 7.5.1(98610071)
Command: USER username
Response: 331 Enter password
Command: PASS
Response: 230-User logged in
Response: Welcome to FTP Euro RSCG
Response: 230 User logged in
Command: SYST
Response: 215 UNIX
Command: FEAT
Response: 211-Extensions supported
Response: SIZE
Response: XMD5
Response: XSHA1
Response: XSHA256
Response: XSHA512
Response: XQUOTA
Response: LANG EN, ES, FR, GE
Response: MDTM
Response: MLST size*;type*;perm*;create*;modify*;
Response: REST STREAM
Response: TVFS
Response: UTF8
Response: AUTH SSL;TLS-P;
Response: PBSZ
Response: PROT C;P;
Response: 211 end
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/users/username" is current directory
Command: TYPE I
Response: 200 Transfer mode set to BINARY
Command: PORT 192,168,1,132,196,42
Response: 200 Command PORT succeed
Command: LIST
Response: 150 Transferring directory
Response: 226 Transfer completed
Status: Directory listing successful

and that's what it looks like with socks5 proxy enabled:

Status: Connecting to ftp-01.havasworldwide.de through proxy
Status: Resolving address of proxy.oz.de
Status: Connecting to 10.1.224.211:1080...
Status: Connection with proxy established, performing handshake...
Status: Connection established, waiting for welcome message...
Response: 220 ftp-01.eurorscg.de X2 WS_FTP Server 7.5.1(45324879)
Command: USER username
Response: 331 Enter password
Command: PASS
Response: 230-User logged in
Response: Welcome to FTP Euro RSCG
Response: 230 User logged in
Command: SYST
Response: 215 UNIX
Command: FEAT
Response: 211-Extensions supported
Response: SIZE
Response: XMD5
Response: XSHA1
Response: XSHA256
Response: XSHA512
Response: XQUOTA
Response: LANG EN, ES, FR, GE
Response: MDTM
Response: MLST size*;type*;perm*;create*;modify*;
Response: REST STREAM
Response: TVFS
Response: UTF8
Response: AUTH SSL;TLS-P;
Response: PBSZ
Response: PROT C;P;
Response: 211 end
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/users/username" is current directory
Command: TYPE I
Response: 200 Transfer mode set to BINARY
Command: PASV
Error: Connection timed out
Error: Failed to retrieve directory listing

When I use the WS_FTP client, it also works fine with the socks5 proxy.
If you need more logging information, please let me know.

Greetings,

Uwe.

comment:3 by Alexander Schuch, 12 years ago

Keywords: socks proxy added
Summary: Active Mode Problemactive mode does not work with SOCKS 5 proxy

in reply to:  4 comment:5 by Uwe Langhammer, 11 years ago

So why does it work with WS_FTP on the same computer using the same proxy?

Last edited 9 years ago by Tim Kosse (previous) (diff)
Note: See TracTickets for help on using tickets.