无法使用 Filezilla 和路由器连接到 FTP 服务器

hay*_*ire 6 ftp filezilla ftps wireless-router tls

使用 filezilla 连接到我的 Web 服务器时,出现此错误:

Status: Resolving address of ftp.mysite.org.in
Status: Connecting to 199.199.199.18:21...
Status: Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 1 of 150 allowed.
Response:   220-Local time is now 17:58. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220-IPv6 connections are also welcome on this server.
Response:   220 You will be disconnected after 5 minutes of inactivity.
Command:    AUTH TLS
Response:   234 AUTH TLS OK.
Status: Initializing TLS...
Error:  GnuTLS error -9: A TLS packet with unexpected length was received.
Status: Server did not properly shut down TLS connection
Error:  Could not connect to server
Run Code Online (Sandbox Code Playgroud)

我使用 cradlepoint CTR35 wifi 路由器连接到有线互联网连接。当我在没有此路由器的情况下连接到同一台服务器时,连接工作正常。

所以我想我的路由器防火墙设置有问题,但我不知道是什么!有人可以帮我吗?

注意:服务器需要EXPLICIT FTP OVER TLS并且不适用于普通的 FTP 会话。我可以使用普通 FTP 连接到其他服务器,路由器介于两者之间。

编辑:

好的。这是一些调试信息..

Status: Resolving address of ftp.md-47.webhostbox.net
Status: Connecting to 199.79.63.83:21...
Status: Connection established, waiting for welcome message...
Trace:  CFtpControlSocket::OnReceive()
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 1 of 150 allowed.
Response:   220-Local time is now 05:11. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220-IPv6 connections are also welcome on this server.
Response:   220 You will be disconnected after 5 minutes of inactivity.
Trace:  CFtpControlSocket::SendNextCommand()
Command:    AUTH TLS
Trace:  CFtpControlSocket::OnReceive()
Response:   234 AUTH TLS OK.
Status: Initializing TLS...
Trace:  CTlsSocket::Handshake()
Trace:  CTlsSocket::ContinueHandshake()
Trace:  CTlsSocket::ContinueHandshake()
Trace:  CTlsSocket::ContinueHandshake()
Error:  GnuTLS error -9: A TLS packet with unexpected length was received.
Status: Server did not properly shut down TLS connection
Trace:  CTlsSocket::OnSocketEvent(): close event received
Trace:  CRealControlSocket::OnClose(10053)
Trace:  CFtpControlSocket::ResetOperation(66)
Trace:  CControlSocket::ResetOperation(66)
Error:  Could not connect to server
Status: Waiting to retry...
Run Code Online (Sandbox Code Playgroud)

Ƭᴇc*_*007 0

您的 FileZilla 设置为哪种模式:主动模式还是被动模式?

Active 在 NAT 路由器后面无法(轻松)工作。

有关更多信息,请参阅此处的FileZila wiki 条目:

主动模式

在主动模式下,客户端打开一个套接字并等待服务器建立传输连接。默认情况下,FileZilla 客户端会向操作系统询问计算机的 IP 地址和可用端口号。仅当您在没有任何 NAT 路由器的情况下直接连接到互联网,并且您已将防火墙设置为允许所有大于 1024 的端口上的传入连接时,此配置才有效。

  • 我尝试了主动模式和被动模式,但仍然是同样的问题! (3认同)