Azure VM中Windows Server 2022 IIS FTP服务器SSL模式下连接成功但无法列出文件的求助
Azure VM中Windows Server 2022 IIS FTP服务器SSL模式下连接成功但无法列出文件的求助
大家好,我最近在Azure的Windows Server 2022虚拟机上用IIS搭了个FTP服务器,折腾半天遇到个头疼的问题,想请各位帮忙分析下:
先说说我的配置情况:
- 已经把FTP数据通道的端口范围设置为5000-6000
- FTP站点设置里的“防火墙外部IP地址”已经填了正确的公网IP
- Azure层面的防火墙已经开放了20、21端口,还有5000-6000这个端口段
- 为了排除本地防火墙的干扰,我已经临时关闭了Windows VM内部的防火墙
然后是具体的问题现象:
- 用FileZilla不开启SSL连接的时候,一切都正常,登录、列文件、传文件都没毛病
- 但切换到SSL模式连接时,明明能成功登录,就是没法列出文件,以下是我截取的FileZilla日志:
Status: Connecting to x.x.x.x:21... Status: Connection established, waiting for welcome message... Response: 220 Microsoft FTP Service Command: AUTH TLS Response: 234 AUTH command ok. Expecting TLS Negotiation. Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Command: USER xx Response: 331 Password required Command: PASS ************ Response: 230 User logged in. Command: OPTS UTF8 ON Response: 200 OPTS UTF8 command successful. --- 这里之后就卡住了,没有后续列目录的响应 ---
有没有大佬碰到过类似的情况?或者能给我一些排查的方向?实在是搞不定了,谢谢大家!
备注:内容来源于stack exchange,提问作者Paul




