danpedron / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 1 forks source link

Error transferring files throught FTP PASV mode #191

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate a 4Mb zeroes file in the snake-os box
2. Connect via an usual FTP client (i.e. Filezilla) to snake system and 
transfer this file
3. Made the md5 in the original file in de snake-os box and in the transfered 
file and you will notice the difference.

What is the expected output? What do you see instead?

Inside the file where there must be all zeroes appears occacionally and 
aparently in a random manner characters like 0x6838...

What version of the product are you using? On what operating system?

Linux snake 2.6.16-gazineu #13 Mon Jun 21 21:43:59 BRT 2010 armv4l GNU/Linux
snakeos-V1.2.0-20100621-from-original.zip 

Please provide any additional information below.

Thanks in advance, great work!

Original issue reported on code.google.com by roch...@gmail.com on 24 Aug 2011 at 12:24

GoogleCodeExporter commented 8 years ago
Seems to work ok here. Maybe try upgrading to 1.3.2.

snake:
# dd if=/dev/zero of=test bs=4M count=1
1+0 records in
1+0 records out
# md5sum test
b5cfa9d6c8febd618f91ac2843d50a1c  test

client:
ftp> get test
227 Entering Passive Mode (192,168,0,240,198,183).
150 Opening BINARY mode data connection for test (4194304 bytes).
226 File send OK.
4194304 bytes received in 0.427 seconds (9834196 bytes/s)

$ md5sum test
b5cfa9d6c8febd618f91ac2843d50a1c  test

$ hexdump test
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0400000

I'll try it with FileZilla later.

Original comment by stefansc...@googlemail.com on 27 Aug 2011 at 9:00

GoogleCodeExporter commented 8 years ago
Hi, so you are using 1.3.2?
El 27/08/2011 11:02, <snake-os@googlecode.com> escribi�:

Original comment by roch...@gmail.com on 27 Aug 2011 at 9:48

GoogleCodeExporter commented 8 years ago
Yes. that was from a fresh install.

And I don't have any issues with FileZilla either.

Original comment by stefansc...@googlemail.com on 27 Aug 2011 at 12:55

GoogleCodeExporter commented 8 years ago
I have the same problem. File transfer in passive mode on ftp file arrives 
broken. Opera, IE, Total. In the active mode - works. If the file is <2 Mb, it 
works in passive mode.

Kernel version: 2.6.16-gazineu
NAS version:    SNAKE OS V1.3.2 (20101130)

Original comment by andrei.s...@gmail.com on 21 Sep 2011 at 6:45

GoogleCodeExporter commented 8 years ago
I think that the problem could be related with the ADSL behind is located the 
snake-os box ... andrei, you're having this problem in an intranet or there is 
any kind of router between snake-os box and the FTP client?

Original comment by jasnago...@gmail.com on 21 Sep 2011 at 7:07

GoogleCodeExporter commented 8 years ago
Thank you for your work and help!
I use a router from DX on Ralink 3052 c DD-WRT firmware. In fact, if you 
connect via cable, passive mode works. If WiFi is not working. From the WAN 
does not work either. In this active mode works everywhere. The problem is 
really a router. Transfer Snake box in the DMZ does not help.

Original comment by andrei.s...@gmail.com on 23 Sep 2011 at 7:24