免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2423 | 回复: 5
打印 上一主题 下一主题

Vsftpd设置成功,也可以连接上,但是就是不能进行数据连接? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-29 20:07 |只看该作者 |倒序浏览
Vsftpd设置成功后,可以进行连接,如下所示

  1. C:\Documents and Settings\Administrator>ftp 10.41.28.200
  2. Connected to 10.41.28.200.
  3. 220 Welcome to Libra9z's FTP server.
  4. User (10.41.28.200:(none)): hanson
  5. 331 Please specify the password.
  6. Password:
  7. 230 Login successful.
  8. ftp> ls
  9. 200 PORT command successful. Consider using PASV.
复制代码

在使用ls后就停在那里了,显示如下错误

代码:

  1. 425 Failed to establish connection.
复制代码


pf的设置规则如下:


  1. block in all
  2. pass in proto tcp from any to any port 21 keep state
  3. pass in proto tcp from any to any port > 49151 keep state
  4. pass out quick from any to any keep state
复制代码


vsftpd的配置文件如下所示
代码:

  1. anonymous_enable=NO
  2. local_enable=YES
  3. write_enable=YES
  4. local_umask=022
  5. dirmessage_enable=YES
  6. xferlog_enable=YES
  7. connect_from_port_20=YES
  8. ascii_upload_enable=YES
  9. ascii_download_enable=YES
  10. ftpd_banner=Welcome to Libra9z's FTP server.
  11. chroot_list_enable=YES
  12. chroot_list_file=/usr/local/etc/vsftpd.chroot_list
  13. secure_chroot_dir=/usr/local/share/vsftpd/empty
  14. userlist_enable=YES
  15. userlist_deny=YES
  16. userlist_file=/usr/local/etc/vsftpd.user_list
  17. pasv_min_port=49152
  18. pasv_max_port=65535
复制代码


已经将PASV的端口放开了,怎么还是不行啊???郁闷ing。。。

论坛徽章:
0
2 [报告]
发表于 2005-11-29 20:10 |只看该作者
你客户端用的是PASV模式么?

论坛徽章:
0
3 [报告]
发表于 2005-11-29 21:43 |只看该作者
原帖由 libra9z 于 2005-11-29 20:07 发表
Vsftpd设置成功后,可以进行连接,如下所示
[code]
C:\Documents and Settings\Administrator>ftp 10.41.28.200
Connected to 10.41.28.200.
ftp> ls
200 PORT command successful. Consider using PASV

上面已经是PASV模式了

论坛徽章:
0
4 [报告]
发表于 2005-11-30 13:34 |只看该作者
还没有搞定,超级郁闷啊。。。。。

论坛徽章:
0
5 [报告]
发表于 2006-01-20 14:26 |只看该作者
我今天也碰到这个问题,捣腾了半天才弄明白,我的单机防火墙没有允许主动模式,允许,搞定,另2000的ftp命令只有主动模式

论坛徽章:
0
6 [报告]
发表于 2006-01-20 14:34 |只看该作者
改下模式试试啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP