You should check if Firefox uses active mode (PORT
) or passive mode (PASV
). It should be PASV
as well as if PORT
is used, the data connection will likely be done outside the proxy connection.
In the given example, the server/proxy replied to PASV
with X,224,74
which translates to X:57418
(224 * 256 + 74). You should check that the connection through the proxy is properly forwarded, so you should see a connection request to X, port 57418 from the other end of the proxy/tunnel - you can check with tcpdump
on that end.
The only difference between LIST
and MLSD
is the directory list formatting. LIST
basically is free-form text which is a pain to parse whereas MLSD
is a well-defined format which is suited to machine parsing.
I did a local test, by running ssh -D 12345 localhost
and configuring a generic proxy on localhost
port 12345
in FileZilla 3.5.3 (pretty old version). Connecting to ftp.kernel.org
just works.
Status: Connecting to 127.0.0.1:12345... Status: Connection with proxy established, performing handshake... Status: Connection established, waiting for welcome message... Response: 220 Welcome to kernel.org Command: USER anonymous Response: 331 Please specify the password. Command: PASS ************** Response: 230 Login successful. Command: SYST Response: 215 UNIX Type: L8 Command: FEAT Response: 211-Features: Response: EPRT Response: EPSV Response: MDTM Response: PASV Response: REST STREAM Response: SIZE Response: TVFS Response: UTF8 Response: 211 End Command: OPTS UTF8 ON Response: 200 Always in UTF8 mode. Status: Connected Status: Retrieving directory listing... Command: CWD /pub Response: 250 Directory successfully changed. Command: PWD Response: 257 "/pub" Command: TYPE I Response: 200 Switching to Binary mode. Command: PASV Response: 227 Entering Passive Mode (198,145,20,140,120,140). Command: LIST Status: Connecting to 127.0.0.1:12345... Status: Connection with proxy established, performing handshake... Response: 150 Here comes the directory listing. Response: 226 Directory send OK. Status: Directory listing successful