pure-ftp 的连接/端口问题

pure-ftp 的连接/端口问题

我在防火墙后面的 freebsd 上设置了 pure-ftp。在 pure-ftp 上设置了 passsi 模式 ftp(范围端口 50400-50600),防火墙打开了 50400-50600 端口(包括模式 IN 和 out)。但我尝试使用 ftp 客户端连接,但无法连接。无连接错误

status: Connecting to 210.245.88.96:21...
Status: Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] ----------
Response:   220-You are user number 1 of 50 allowed.
Response:   220-Local time is now 13:20. Server port: 21.
Response:   220-IPv6 connections are also welcome on this server.
Response:   220 You will be disconnected after 15 minutes of inactivity.
Command:    USER bk
Response:   331 User bk OK. Password required
Command:    PASS *****
Response:   230 OK. Current directory is /
Command:    SYST
Response:   215 UNIX Type: L8
Command:    FEAT
Response:   211-Extensions supported:
Response:    EPRT
Response:    IDLE
Response:    MDTM
Response:    SIZE
Response:    REST STREAM
Response:    MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response:    MLSD
Response:    ESTA
Response:    PASV
Response:    EPSV
Response:    SPSV
Response:    ESTP
Response:   211 End.
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is your current location
Command:    TYPE I
Response:   200 TYPE is now 8-bit binary
Command:    PASV
Response:   227 Entering Passive Mode (210,245,88,98,138,1)
Command:    MLSD
Error:  Connection timed out
Error:  Failed to retrieve directory listing
Status: Connecting to 210.245.88.98:21...
Status: Connection established, waiting for welcome message...

帮我。

信息变更

答案1

打开端口可能还不够,您可能还需要将端口范围转发回您的 FTP 服务器。

相关内容