PDA

View Full Version : Very strange problem !!!


MrPat
10-03-2002, 09:43 AM
Hi, i know router problems have been discuss before, but i haven't seen something similar to my problem.

I have at home 2 computers. One is on Debian-Linux .. and uses ProFTPD. My network is behind a Linksys Router.

In my Forwarding Tables, i've forward Ports 20-21 TCP and UDP to my Linux computer's network adress.

When i connect directly to my server i can upload anything to it. But when i'm trying for example to transfer from site-to-site the transfer jammed at the STOR command. I dunno why, but even if i'm trying to send with the PORT command, it always enters PASS mode.

I tried to activate DMZ host on my Linux computer's network adress .. still no change !

Can somebody help me ??

P.S: My proftpd is configure to accept site-to-site .. coz on certain site-to-site-transfer, it works but only 10% of all transfers.

Linkster
10-03-2002, 11:01 AM
try adding the directive PassivePorts 50000 51999 (or any other range you want) to your proftpd conf file and then forward that port range to your linux box.

MrPat
10-03-2002, 11:48 AM
Still having the same problems .. i'll paste the log that I have in FlashFXP !!!

Connecting to 1st server !!
--------------------------------------------------------------
Connecting to Home
Connected to lo-teck.no-ip.com Port 21
220 ProFTPD 1.2.5 Server (Pat) [Freeform]
USER pat
331 Password required for pat.
PASS (hidden)
230 User pat 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 "/home/pat" is current directory.
TYPE A
200 Type set to A.
PORT 192,168,1,61,12,194
200 PORT command successful.
LIST
150 Opening ASCII mode data connection for file list.
226-Transfer complete.
226 Quotas off


Connecting to 2nd server
--------------------------------------------------------------
Connecting to Debian UK
Connected to ftp.uk.debian.org Port 21
220 ready, dude (vsFTPd 1.0.0: beat me, break me)
USER anonymous
331 Please specify the password.
PASS (hidden)
230 Login successful. Have fun.
SYST
215 UNIX Type: L8
REST 100
350 Restart position accepted.
REST 0
350 Restart position accepted.
CWD /debian/
250 Directory successfully changed.
PWD
257 "/debian"
TYPE A
200 ASCII tastes bad, dude.
PASV
227 Entering Passive Mode (195,224,53,39,19,206)
LIST
150 Here comes the directory listing.
226 Directory send OK.


Trying to upload a file from Debian's server, to my home server
--------------------------------------------------------------
TYPE I
200 Binary it is, then.
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (195,224,53,39,238,219)
PORT 195,224,53,39,238,219
200 PORT command successful.
STOR ls-lR


And nothing happens, it stays there !!
Hope it's more clear now my problem. Thanx for the help in advance :)

-Pat

Linkster
10-03-2002, 11:54 AM
STOR ls-lr? wtf? thats not right at all.

MrPat
10-03-2002, 12:38 PM
STOR ls-lR means .. STORING the file ls-lR

hehe sorry for the misunderstanding ;)

bigstar
10-03-2002, 12:54 PM
Is your ftp server configured to allow site to site transfers. ProFTPD does not allow it by default.

ftp.uk.debian.org does not allow fxp transfers, however you may be able to get away with it since your ftp server is the same ip as you're connecting with the ftp client.

MrPat
10-03-2002, 01:06 PM
My IP is not the same, because i'm at work now, and my ftp server is at home .. !! And yes I have enable site-to-site transfer with ProFTPD ! :)

Do u have a ftp, where i could test, instead of Debian's ftp ?

-Pat

bigstar
10-03-2002, 01:38 PM
Oh well then that's probably why it failed.

I am not aware of any public ftp servers that allow site to site transfers.