windows 将端口 21 更改为 30 后 FileZilla FTP 服务器错误“425 无法打开数据连接”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23123396/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
FileZilla FTP Server error "425 Can't open data connection" after changing port 21 to 30
提问by NaeN
I am using windows server + Xampp 1.8.3 and install FileZilla FTP Server => All configurations are ok! But when I change default FTP's port (21) to another port (30), it alerts:
我正在使用 windows server + Xampp 1.8.3 并安装 FileZilla FTP Server => 所有配置都可以!但是当我将默认 FTP 的端口 (21) 更改为另一个端口 (30) 时,它会发出警报:
STATUS:> [17/04/2014 8:54:08 SA] Connecting to FTP server... xxx.xxx.xxx.xxx:30 (ip = xxx.xxx.xxx.xxx)...
STATUS:> [17/04/2014 8:54:08 SA] Socket connected. Waiting for welcome message...
[17/04/2014 8:54:08 SA] 220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse ([email protected])
220 Please visit http://sourceforge.net/projects/filezilla/
STATUS:> [17/04/2014 8:54:08 SA] Connected. Authenticating...
COMMAND:> [17/04/2014 8:54:08 SA] USER admin
[17/04/2014 8:54:09 SA] 331 Password required for admin
COMMAND:> [17/04/2014 8:54:09 SA] PASS *****
[17/04/2014 8:54:09 SA] 230 Logged on
STATUS:> [17/04/2014 8:54:09 SA] Login successful.
COMMAND:> [17/04/2014 8:54:09 SA] SYST
[17/04/2014 8:54:09 SA] 215 UNIX emulated by FileZilla
STATUS:> [17/04/2014 8:54:09 SA] Host type detected: Unix.
COMMAND:> [17/04/2014 8:54:09 SA] PWD
[17/04/2014 8:54:09 SA] 257 "/" is current directory.
STATUS:> [17/04/2014 8:54:09 SA] Home directory: /
STATUS:> [17/04/2014 8:54:09 SA] This site supports features.
STATUS:> [17/04/2014 8:54:09 SA] This site supports SIZE.
STATUS:> [17/04/2014 8:54:09 SA] Setting up character encoding.
COMMAND:> [17/04/2014 8:54:09 SA] OPTS UTF8 on
[17/04/2014 8:54:09 SA] 200 UTF8 mode enabled
STATUS:> [17/04/2014 8:54:09 SA] Using UTF-8.
STATUS:> [17/04/2014 8:54:09 SA] This site can resume broken downloads.
COMMAND:> [17/04/2014 8:54:09 SA] REST 0
[17/04/2014 8:54:09 SA] 350 Rest supported. Restarting at 0
COMMAND:> [17/04/2014 8:54:09 SA] PORT 192,168,1,111,207,240
[17/04/2014 8:54:09 SA] 200 Port command successful
COMMAND:> [17/04/2014 8:54:09 SA] LIST
[17/04/2014 8:54:09 SA] 150 Opening data channel for directory list.
ERROR:> [17/04/2014 8:54:40 SA] Timeout (30000 ms) occurred on accepting data connection from server.
[17/04/2014 8:54:41 SA] 425 Can't open data connection.
[17/04/2014 8:56:21 SA] 421 Connection timed out.
ERROR:> [17/04/2014 8:56:21 SA] Control connection closed.
I opened port 20,21,30.
我打开了20、21、30端口。
采纳答案by Steffen Ullrich
Port 20 is used as a source port for data connections in active mode (the on you use here) if the server listens on the default port 21. According to RFC959, 3.2 the default source port of the server for data connections is L-1, e.g. if L is 30 like in your case the source port should be 29 and no longer 20 so you have to allow connections from port 29.
如果服务器侦听默认端口 21,则端口 20 用作主动模式下数据连接的源端口(您在此处使用)。 根据 RFC959,3.2 服务器用于数据连接的默认源端口为 L-1 ,例如,如果 L 是 30,就像你的情况一样,源端口应该是 29 而不是 20,所以你必须允许来自端口 29 的连接。
回答by Johan
You need to setup your passive ports in your Firewall. I wrote a tutorial not long ago: http://johandorper.com/log/filezilla-server-passive-ports
您需要在防火墙中设置被动端口。前不久写了个教程:http: //johandorper.com/log/filezilla-server-passive-ports
回答by Corey Manshack
Also check your hosts file on windows for invalid entries. Had a help desk person with an old entry in their hosts file to the wrong ftp server and they were getting a 425.
还要检查 Windows 上的主机文件是否有无效条目。有一个帮助台人员在他们的主机文件中有一个旧条目到错误的 ftp 服务器,他们得到了 425。