Bug 7838 - [ftpd] "ls" time out on WIN7 cmd line ftp client
Summary: [ftpd] "ls" time out on WIN7 cmd line ftp client
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-27 04:10 UTC by reddy_quan
Modified: 2015-01-28 20:15 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reddy_quan 2015-01-27 04:10:12 UTC
Hi,
I compile the new busybox 1.23.0 on an unbutu 12.04-x86_64 and runs it on that machine, 
then I login via a WIN7 cmd line ftp client.
After I login, I run "ls" command, it first returns a "200 Operation successful", but then get stucked.

Here is the client out:

E:\test\ADB>ftp 172.16.1.177
连接到 172.16.1.177。
220 Operation successful
用户(172.16.1.177:(none)):
230 Operation successful
ftp>
ftp> ls
200 Operation successful
421 Timeout
ftp>
ftp>
ftp>
ftp>
Comment 1 reddy_quan 2015-01-27 04:25:59 UTC
The client log:
E:\test\ADB>ftp 172.16.1.177
连接到 172.16.1.177。
220 Operation successful
用户(172.16.1.177:(none)):
230 Operation successful
ftp>
ftp>
ftp>
ftp>
ftp> ls
200 Operation successful
远程主机关闭连接。
ftp>
ftp>

The server log:
root@test:/home/reddy/test/busybox-1.23.0.a# ./busybox tcpsvd -vE 0.0.0.0 21 ./busybox ftpd -t60000 -T600000 -v -w /home/reddy
tcpsvd: listening on 0.0.0.0:21, starting
tcpsvd: start 5119 172.16.1.177:21-172.16.1.31:1682
tcpsvd: status 1/30
ftpd[5119]: can't connect to remote host (172.16.1.31): Connection timed out
tcpsvd: end 5119 exit 1
tcpsvd: status 0/30
Comment 2 Denys Vlasenko 2015-01-28 20:15:35 UTC
It's likely because of a NAS firewall making impossible reverse connection for data. Use PASV command, so that the _client_ connects to server.