【发布时间】:2017-10-01 04:46:06
【问题描述】:
所以几天前,我尝试创建一个家庭 FTP 服务器,我可以从自己的网络访问它。有效。但现在我想更进一步。我希望通过外部 IPv4 地址从任何网络访问我的家庭 FTP 服务器。所以这是我的问题。
每次如果我想在localhost 或我的本地 IP 地址上连接到我的服务器,它就可以工作。但是当我尝试使用我的外部 IP 地址上的相同凭据进行连接时,它说它无法检索目录列表:
Status: Connecting to *************:800...
Status: Connection established, waiting for welcome message...
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (**,***,*,***,***,106)
Command: MLSD
Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
Response: 425 Can't open data connection for transfer of "/"
Error: Failed to retrieve directory listing
227 响应中的(混淆)IP 地址与“正在连接到...”消息中的(混淆)服务器 IP 地址不匹配。
我尝试关闭防火墙,为 TCP 和 UDP 转发端口 21 和端口 800,但没有任何效果。我还为这两个端口设置了例外,但效果并不好。
另一个问题是,如果我想在我的 FileZilla 服务器上登录我的外部 IP 地址,它会显示:
正在连接到服务器 -censored-:14147...
错误,无法连接到服务器
尝试在 5 秒后重新连接
我的问题是:如何创建一个可以远程访问的家庭 FTP 服务器?
【问题讨论】:
标签: networking ftp firewall filezilla