我的 FTP 服务器怎么会发生这种情况?

我的 FTP 服务器怎么会发生这种情况?

再次,我只是不明白为什么我会收到此消息,当我尝试通过我的 wan 地址(112.135.26.115)连接我的 ftp 服务器时,它说 530 用户访问被拒绝

但当我把同样的数据给http://ftptest.net结果如下...

Status: Resolving address of 112.135.26.115

Status: Connecting to 112.135.26.115

Status: Connected, waiting for welcome message

Reply: 220-FileZilla Server version 0.9.34 beta

Reply: 220-written by Tim Kosse ([email protected])

Reply: 220 Please visit http://sourceforge.net/projects/filezilla/

Status: CLNT http://ftptest.net on behalf of 112.135.26.115

Reply: 200 Don't care

Status: USER saravana

Reply: 331 Password required for saravana

Status: PASS *********

Reply: 230 Logged on

Status: SYST

Reply: 215 UNIX emulated by FileZilla

Status: FEAT

Reply: 211-Features:

Reply: MDTM

Reply: REST STREAM

Reply: SIZE

Reply: MLST type*;size*;modify*;

Reply: MLSD

Reply: AUTH SSL

Reply: AUTH TLS

Reply: UTF8

Reply: CLNT

Reply: MFMT

Reply: 211 End

Status: PWD

Reply: 257 "/" is current directory.

Status: Current path is /

Status: TYPE I

Reply: 200 Type set to I

Status: PASV

Reply: 227 Entering Passive Mode (112,135,26,115,43,9)

Status: MLSD

Reply: 150 Connection accepted

Listing: type=dir;modify=20100322113235; it_is_working!_Andrejs_Cainikovs_from_serverfault.com

Listing: type=file;modify=20100322110559;size=5; New Text Document.txt

Reply: 226 Transfer OK

Status: Success

谁能告诉我为什么会发生这种情况?求求你,我整天都在努力!!

这是我通过 filezilla 客户端本地访问的日志

    Status: Connecting to 127`enter code here`.0.0.1:21...
Status: Connection established, waiting for welcome message...
Response:   220-FileZilla Server version 0.9.34 beta
Response:   220-written by Tim Kosse ([email protected])
Response:   220 Please visit http://sourceforge.net/projects/filezilla/
Command:    USER saravana
Response:   331 Password required for saravana
Command:    PASS **********
Response:   230 Logged on
Command:    SYST
Response:   215 UNIX emulated by FileZilla
Command:    FEAT
Response:   211-Features:
Response:    MDTM
Response:    REST STREAM
Response:    SIZE
Response:    MLST type*;size*;modify*;
Response:    MLSD
Response:    UTF8
Response:    CLNT`enter code here`
Response:    MFMT
Response:   211 End
Status: Connected
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 (127,0,0,1,43,10)
Command:    MLSD
Response:   150 Connection accepted
Response:   226 Transfer OK
Status: Directory listing successful

答案1

FTP 服务器是否通过 NAT 转换为公用 IP 地址?如果是这样,请在 LAN 上尝试从内部 IP 地址连接到它。许多防火墙会阻止从防火墙传出的流量返回。因此,如果 FTP 服务器有一个内部地址,而防火墙将其转换为公用 IP 地址,则 ftptest.org 测试将正常工作,因为它完全在防火墙之外,但是,您的 PC 可能无法正常工作,因为它试图离开网络以访问公用 IP 地址,然后通过 NAT 路由返回。转到内部 IP 地址可以解决此问题。

答案2

我的第一个猜测是你没有像测试输出那样使用被动模式。我的第二个猜测是防火墙上的规则不允许主动或被动模式下的 ftp 通过。

相关内容