FTP Error “425 Unable to build data connection”
来源:互联网 发布:小非农数据几点公布 编辑:程序博客网 时间:2024/06/03 06:42
最近有同事在使用Android 4.0.4手机的“tethering” 时遇到了一个问题--FTP可以登录成功,但是无法查看文件“dir , ls”,自己验证了一下,无论是Windows XP, Win 7都不能工作,google一把,发现windows只支持主动模式,不支持被动模式。用linux实验了一下,被动模式可以工作(pftp 或者 ftp -p)。网上大部分都说是防火墙的原因,有列举如何配置防火墙的,但是想想我的 Android手机 kernel是linux, 防火墙是什么呢?应该就是关于iptable, ip filter等等吧。借了一台Galaxy nexus 实验,可以使用“ls, dir”,靠看来是我们的手机配置问题,查看iptable对比,一模一样,怎么办呢?
于是抓iplog ,发现如下erro " 425 Unable to build data con":
610 2012-06-28 15:32:13.087518 192.168.13.96 122.200.68.240 FTP 74 Request: LIST615 2012-06-28 15:32:16.055640 122.200.68.240 192.168.13.96 FTP 125 Response: 425 Unable to build data connection
对“425 Unable to build data conection”解释的很好的文章:
http://www.trapstone.com/articles/windows_ftp_425_connection_refused
于是开始补充FTP Active mode, Passive mode知识: http://space.itpub.net/4670/viewspace-310375 随便网上搜,可以学习一下。
http://www.trapstone.com/articles/windows_ftp_425_connection_refused
最好没有办法了,想想会不会跟NAT有关系,估计只能在kernel里解决了,我想FTP 对于linux kernel应该是小菜,怎么可能不支持呢,应该是没有打开一些配置选项吧,搜索一下有NAT_FTP的选项没有打开,打开后重新编译,验证果然可以工作了,见下面:
首先:make menuconfig
然后添加:
CONFIG_NF_CONNTRACK_FTP=y
CONFIG_NF_NAT_FTP=y
编译kernel, 替换验证。
- FTP Error “425 Unable to build data connection”
- Windows FTP Error 425: Unable to build data connection
- 425 Unable to build data connection: Connection refused
- CE Unable to read data from the transport connection.
- FTP 425 Cannot open data connection.
- cmd下ftp登陆成功却ls显示Can't build data connection: Connection timed out
- ERROR (notification:44) Unable to send notification: (111, 'Connection refused')
- Unexpected error. Unable to verify database connection CDH 5.10.0
- sql连接远程服务器:unable to add data connection fail to retrieve data for this request
- Python in Windows -- build--''error: Unable to find vcvarsall.bat''
- The connection pool for database '/data/data/....db' has been unable to grant a connection to thread
- ERROR: unable to get the receiver data from the DB!
- git 提示:error: unable to rewind rpc post data
- Composer安装: Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Request to...
- FileZilla FTP 425 Can't open data connection 的问题解决
- VNC Viewer : Error "unable to connect to hotst: Connection refused (10061)"
- Putty X11 proxy: unable to connect to forwarded X server: Network error:connection refused
- Cassandra学习笔记 --- Connection error: ('Unable to connect to any servers', {'127.0.0.1': ...
- eclipse总是自动跳到ThreadPoolExecutor.java
- group by having limit结合使用实例
- hostgator
- 开发人员眼中最好的代码编辑器是谁?
- Oracle表卡、表锁、空间不释放解决方法
- FTP Error “425 Unable to build data connection”
- CVPR 2010 有趣的文章
- 为什么 ++[[]][+[]]+[+[]] = 10?
- 玩转keybd_event
- 一些不怎么注意的细节
- 2.测试SimpleDateFormat()
- hdu 4328 cut the cake#单调队列#DP
- 韩顺平数据库陷阱编程 sql注入原理解释
- 【Android】Coverflow Widget