PASV mode between 2 sites.

Core FTP client questions and answers
Post Reply
freig
Posts: 1
Joined: Tue Aug 09, 2005 8:20 am

PASV mode between 2 sites.

Post by freig »

Im in a situation where my servers cant use PASV. So I uncheck the option on the Sitemanager screen.

I have 2 homepages and want to send some files from one site to the other. I make sure that each site dont use PASV mode.

But when I try to send a file from "Site to site" It goes into PASV mode. Do any of you have a clue as to why Core FTP Lite sets the "Site to site" sessions to PASV and if there is an option which can set "Site to site" transfer to not use the PASV command?

Here is the messagelog:

Welcome to Core FTP, release ver 1.3c, build 1420.02 (U) -- © 2003-2005
WinSock 2.0
Mem -- 523,760 KB, Virt -- 2,097,024 KB
Started on Tuesday August 09, 2005 at 10:31:AM
Resolving XXXX
Connect socket #500 to 195.41.53.187, port 21...
220 XXXX FTP server (Version wu-20011128-jc(1) Thu Nov 29 15:37:13 MET 2001) ready.
USER XXXX
331 Password required for XXXX.
PASS **********
230 User XXXX logged in. Access restrictions apply.
SYST
215 UNIX Type: L8
Keep alive off...
PWD
257 "/" is current directory.
PORT 192,168,0,7,95,38
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
Transferred 1,393 bytes in 0.431 seconds
Resolving YYYY
Connect socket #600 to 195.41.53.186, port 21...
220 YYYY FTP server (Version wu-20011128-jc(1) Thu Nov 29 15:37:13 MET 2001) ready.
USER YYYY
331 Password required for YYYY.
PASS **********
230 User YYYY logged in. Access restrictions apply.
SYST
215 UNIX Type: L8
PWD
257 "/" is current directory.
Keep alive off...
PORT 192,168,0,7,95,38
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for /bin/ls.
226 Transfer complete.
Transferred 877 bytes in 0.231 seconds
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (195,41,53,186,28,193)
PORT 195,41,53,186,28,193
200 PORT command successful.
RETR picture.jpg

picture.jpg - 0 bytes transferred
Transfer time: 00:01:00


Thanks for your help.
jeffd
Posts: 113
Joined: Thu May 06, 2004 6:12 am

Post by jeffd »

Freig,

The PASV command is only being issued to prepare the destination server for receiving of a file. In other words, when a site-to-site transfer occurs, all that is happening is one server is transferring a file to another. The only way this can happen is for one server to receive the file via the PASV command and the other server send via the PORT command. If it doesn't work one way, you can try switching the servers vice versa and maybe they will allow site-to-site transfers the other way (try connecting the servers on opposite sides and try again).

I haven't done many site-to-site transfers recently because more and more servers are disallowing it as an option (for security reasons not allowing the PORT command) or can't do it because they are behind a firewall. This might be why you are seeing the timeouts.

-- Jeff
gccme
Posts: 12
Joined: Wed Sep 14, 2005 3:16 pm

Post by gccme »

I know that's not a direct solution to your problem, but could you enable the PASV mode on your servers ?

PASV mode is the new and better way to use FTP !

Which brand of FTP servers do you use ?
Post Reply