windows-server-2008-r2 – FileZilla FTP的被动模式无法正常工作

前端之家收集整理的这篇文章主要介绍了windows-server-2008-r2 – FileZilla FTP的被动模式无法正常工作前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我们在 Windows Server 2008 R2上运行FileZilla服务器0.9.37

活动模式正常,服务器上的Windows防火墙已关闭.

我们的路由器是DrayTek活力2820.在NAT,开放端口,我已经为服务器本地IP打开了以下端口

TCP 20-22,TCP 45100-65535

在FileZilla服务器中,在被动模式设置下(我无法发布图像…)

  1. Use the following IP: 213.106.150.123
  2. Don't use external IP from local connections: Checked
  3. Use custom port range: 45100-65535

从我在德国的远程服务器,我尝试连接回FileZilla服务器.

  1. Status: Connecting to 213.106.150.123:21...
  2. Status: Connection established,waiting for welcome message...
  3. Response: 220 --
  4. Command: USER ftp_001471
  5. Response: 331 Password required for ftp_001471
  6. Command: PASS ********
  7. Response: 230 Logged on
  8. Status: Connected
  9. Status: Retrieving directory listing...
  10. Command: CWD /
  11. Response: 250 CWD successful. "/" is current directory.
  12. Command: TYPE I
  13. Response: 200 Type set to I
  14. Command: PASV
  15. Response: 227 Entering Passive Mode (213,106,150,123,238,133)
  16. Command: MLSD
  17. Response: 425 Can't open data connection.
  18. Error: Failed to retrieve directory listing

FileZilla服务器上的状态窗口报告以下内容

  1. (not logged in) (87.106.131.22)> Connected,sending welcome message...
  2. (not logged in) (87.106.131.22)> 220 --
  3. (not logged in) (87.106.131.22)> USER ftp_001471
  4. (not logged in) (87.106.131.22)> 331 Password required for ftp_001471
  5. (not logged in) (87.106.131.22)> PASS ********
  6. ftp_001471 (87.106.131.22)> 230 Logged on
  7. ftp_001471 (87.106.131.22)> CWD /
  8. ftp_001471 (87.106.131.22)> 250 CWD successful. "/" is current directory.
  9. ftp_001471 (87.106.131.22)> TYPE I
  10. ftp_001471 (87.106.131.22)> 200 Type set to I
  11. ftp_001471 (87.106.131.22)> PASV
  12. ftp_001471 (87.106.131.22)> 227 Entering Passive Mode (213,195,197)
  13. ftp_001471 (87.106.131.22)> MLSD
  14. ftp_001471 (87.106.131.22)> 425 Can't open data connection.

如果我将FileZilla被动模式设置从外部IP更改为默认,我会从德国客户端尝试连接时获得以下详细信息.

  1. Status: Connecting to 213.106.150.123:21...
  2. Status: Connection established,196,198)
  3. Command: MLSD
  4. Response: 425 Can't open data connection.
  5. Error: Failed to retrieve directory listing

以及服务器上的详细信息.

  1. (not logged in) (87.106.131.22)> Connected,sending welcome message...
  2. (not logged in) (87.106.131.22)> 220 --
  3. (not logged in) (87.106.131.22)> USER ftp_001471
  4. (not logged in) (87.106.131.22)> 331 Password required for ftp_001471
  5. (not logged in) (87.106.131.22)> PASS ********
  6. ftp_001471 (87.106.131.22)> 230 Logged on
  7. ftp_001471 (87.106.131.22)> CWD /
  8. ftp_001471 (87.106.131.22)> 250 CWD successful. "/" is current directory.
  9. ftp_001471 (87.106.131.22)> TYPE I
  10. ftp_001471 (87.106.131.22)> 200 Type set to I
  11. ftp_001471 (87.106.131.22)> PASV
  12. ftp_001471 (87.106.131.22)> 227 Entering Passive Mode (192,168,1,4,198)
  13. ftp_001471 (87.106.131.22)> MLSD
  14. ftp_001471 (87.106.131.22)> 425 Can't open data connection.

我究竟做错了什么?

当我指定外部IP时,客户端和服务器报告相同,但端口搞砸了,当我使用默认运行时,服务器使用其内部IP但端口分配看起来更好.

编辑:更多测试及其工作.

所以我在IIS 7.5中安装了FTP服务器,禁用了FileZilla,它工作正常!然后我尝试重新启用FileZilla,这太有用了!这完全来自我家的ADSL连接.

然后我再次尝试从我们在德国的远程服务器失败,挂起在被动模式下的目录列表中,用于IIS FTP和FileZilla.

我想德国数据中心的防火墙/路由器有些问题.我真的不想弄乱远程服务器路由器(我甚至不确定我可以改变防火墙规则作为其托管)我担心企业客户在尝试访问我们的FTP站点时遭受同样的命运.

我建议你尝试使用Windows的FTP或其他安装的客户端在服务器上本地.这样您就可以看到它是网络/防火墙问题还是FTP服务器配置问题.如果命令,还要检查Filezilla服务器的日志文件.

如果它取决于防火墙,这里有一篇TechNet文章可以提供帮助:How to Configure Windows Firewall for a Passive Mode FTP Server.但是您写道Windows防火墙已关闭,所以我认为这是外部防火墙/路由器的问题(也检查客户端).

猜你在找的Windows相关文章