View Single Post
Old 11-16-2001, 10:22 AM  
stat
Junior Member
 
Join Date: Nov 2001
Posts: 5
Default FXPing through a proxy

Hi there,

I'm not sure if I'll be wording this correctly, or making any sense for that matter, but here goes. Basically, I'm connecting to two ftp sites through a proxy server (winproxy). Everything works great, however when I want to FXP between two sites, it seems that the transfers are going from host 1, to the proxy, to host 2 rather than from host 1 to host 2. FlashFXP seems to be doing the port commands with my proxy ip rather than the ftp site's ip.

For Example:
Proxy: 10.0.0.5
Site 1: 10.0.1.0
Site 2: 10.0.2.0

Connecting to 10.0.1.0 via Proxy
Connected to Proxy 10.0.0.5 Port 69
220 WinProxy (Version 4.0 R1f) ready.
USER xxx@10.0.1.0
Connecting to 10.0.2.0 via Proxy
Connected to Proxy 10.0.0.5 Port 69
220 WinProxy (Version 4.0 R1f) ready.
USER yyy@10.0.2.0
331 Password required for xxx.
PASS (hidden)
230 User xxx logged in.
SYST
215 UNIX Type: L8
REST 100
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
It seems fine here because it's just listing, so going through the proxy is how it should go..
227 Entering Passive Mode (10,0,0,5,6,177)
LIST -al
150 Opening ASCII mode data connection for file list
226-Transfer complete.
226 Quotas off
331 Password required for yyy.
PASS (hidden)
230 User yyy logged in.
SYST
215 UNIX Type: L8
REST 100
350 Restarting at 100. Send STORE or RETRIEVE to initiate transfer.
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer.
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (10,0,0,5,6,180)
LIST -al
150 Opening ASCII mode data connection for file list
226-Transfer complete.
226 Quotas off
TYPE I
200 Type set to I.
TYPE I
200 Type set to I.
PASV
It seems like here, it should be doing pasv and port commands of 10.0.x.0 and not the proxy 10.0.0.5, thus slowing down the transfer since it's hopping through the proxy
227 Entering Passive Mode (10,0,0,5,6,188)
PORT 10,0,0,5,6,188
200 PORT command successful.
STOR testfile.txt
150 Opening BINARY mode data connection for testfile.txt.
RETR testfile.txt
150 Opening BINARY mode data connection for testfile.txt (1077219 bytes).
226 Transfer complete.
226 Transfer complete.
and so on.

The transfer works, but again, since it has to take that extra hop, it's slowing it greatly (since the proxy isn't as high speed as the other two sites are). If I bypass the proxy and send the files, then it works fine and the pasv and port commands work as they should and transfers are fast... perhaps it's a misconfiguration on my part?

Thanks for taking the time to read this.. hopefully someone can help me out

Cheers!
stat is offline