PDA

View Full Version : FTP with proxy problem


chookrib
22-Oct-2008, 07:18 PM
I want to compare a folder in FTP Server, and this FTP server is in internal, so I config use proxy server in BC (HTTP Proxy),
but connect faild. this is the BC log:

2008/10/23 7:53:54 Sent> CONNECT 10.32.153.82:21 HTTP/1.0
2008/10/23 7:53:54 Sent>
2008/10/23 7:53:54 Recv> HTTP/1.0 407 Unauthorized
2008/10/23 7:53:54 Server: CCProxy
2008/10/23 7:53:54 Proxy-Authenticate: Basic realm="CCProxy Authorization"
2008/10/23 7:53:54 Cache-control: no-cache
2008/10/23 7:53:54
2008/10/23 7:53:54 <Html><Body><H1> Unauthorized ...</H1></Body></Html>
2008/10/23 7:53:54 Sent> CONNECT 10.32.153.82:21 HTTP/1.0
2008/10/23 7:53:54 Sent> Proxy-authorization: basic cHaJvek6cHvJeHlwYXNz
2008/10/23 7:53:54 Sent>
2008/10/23 7:53:54 Connection Closed Gracefully.

it seemed my proxy server authorization error, but I am sure the username and password is right, and I use the same setting in Internet Explorer, IE can display page. I also try some FTP Client software, etc FTPRush, can connect too, this is FTPRush log:

[1] Connecting to 10.32.153.82 via xxx.xxx.xxx.xxx:xxxx(hidden)
[1] Connecting to 10.32.153.82:21
[1] 220 Serv-U FTP Server v6.4 for WinSock ready...
[1] USER admin
[1] 331 User name okay, need password.
[1] PASS (hidden)
[1] 230 User logged in, proceed.
[1] SYST
[1] 215 UNIX Type: L8
[1] FEAT
[1] 211-Extension supported
[1] CLNT
[1] MDTM
[1] MDTM YYYYMMDDHHMMSS[+-TZ];filename
[1] SIZE
[1] SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
[1] REST STREAM
[1] XCRC filename;start;end
[1] MODE Z
[1] MLST Type*;Size*;Create;Modify*;Win32.ea*;
[1] 211 End
[1] CLNT FTPRush 1.0.0.611U
[1] 200 Noted.
[1] TYPE A
[1] 200 Type set to A.
[1] PWD
[1] 257 "/" is current directory.
[1] PASV
[1] 227 Entering Passive Mode (10,32,153,82,4,83)
[1] Opening data connection IP: 10.32.153.82 PORT: 1107
[1] MLSD
[1] 150 Opening BINARY mode data connection for MLSD.
[1] 226 Transfer complete.
[1] List Complete: 1,088 bytes in 0.31 seconds (3.49KB/s)

how can fix this problem? thanks!

Michael Bulgrien
22-Oct-2008, 10:49 PM
Try unchecking the MLSD command. It can terminate connections on FTP sites where the command is unsupported.

Edit: Nevermind, I didn't read your post well enough... I thought the MLSD command in your post above was at the end of a log from a failed connection.

chookrib
03-Nov-2008, 12:26 PM
I change some setting, and now BC can connect FTP Server via proxy, but have new problem, after connected FTP Server, BC can't get FTP Server file list and then broken.

here is log :

2008/11/4 2:17:29 Sent> CONNECT 192.168.0.1:21 HTTP/1.0
2008/11/4 2:17:29 Sent>
2008/11/4 2:17:29 Recv> HTTP/1.0 200 Connection established
2008/11/4 2:17:29 Proxy-agent: CCProxy 6.62
2008/11/4 2:17:29 Stat> Connected.
2008/11/4 2:17:29 Recv> 220 Serv-U FTP Server v6.4 for WinSock ready...
2008/11/4 2:17:29 Sent> USER admin
2008/11/4 2:17:29 Recv> 331 User name okay, need password.
2008/11/4 2:17:29 Sent> PASS ********
2008/11/4 2:17:29 Recv> 230 User logged in, proceed.
2008/11/4 2:17:29 Sent> FEAT
2008/11/4 2:17:30 Recv> 211-Extension supported
2008/11/4 2:17:30 Recv> CLNT
2008/11/4 2:17:30 MDTM
2008/11/4 2:17:30 MDTM YYYYMMDDHHMMSS[+-TZ];filename
2008/11/4 2:17:30 SIZE
2008/11/4 2:17:30 SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
2008/11/4 2:17:30 REST STREAM
2008/11/4 2:17:30 XCRC filename;start;end
2008/11/4 2:17:30 MODE Z
2008/11/4 2:17:30 MLST Type*;Size*;Create;Modify*;Win32.ea*;
2008/11/4 2:17:30 211 End
2008/11/4 2:17:30 Sent> CLNT Beyond v3.0.9
2008/11/4 2:17:30 Recv> 200 Noted.
2008/11/4 2:17:30 Sent> TYPE A
2008/11/4 2:17:30 Recv> 200 Type set to A.
2008/11/4 2:17:30 Sent> SYST
2008/11/4 2:17:30 Recv> 215 UNIX Type: L8
2008/11/4 2:17:30 Sent> SITE ZONE
2008/11/4 2:17:30 Recv> 210 UTC+480
2008/11/4 2:17:30 Sent> PWD
2008/11/4 2:17:30 Recv> 257 "/d:" is current directory.
2008/11/4 2:17:30 Sent> CWD /d:/app/web
2008/11/4 2:17:30 Recv> 250 Directory changed to /d:/app/web
2008/11/4 2:18:10 Unable to load web: Read timed out.
2008/11/4 2:18:10 Load comparison: D:\Programming\Web <-> ftp://admin@192.168.0.1/app/web

Craig
03-Nov-2008, 12:30 PM
Try changing the "Passive transfers (PASV)" setting on the "Connection" tab of the profile.

chookrib
03-Nov-2008, 03:51 PM
I changed the "PASV" setting, the problem is happen too.