我的服务器configuration正常,工作正常。 我完全不知道,什么改变了,但现在vsftpd(2.2.2)停止工作在被动模式。
Response: 230 Login successful. Command: OPTS UTF8 ON Response: 200 Always in UTF8 mode. Command: PBSZ 0 Response: 200 PBSZ set to 0. Command: PROT P Response: 200 PROT now Private. Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/" Command: TYPE I Response: 200 Switching to Binary mode. Command: PASV Error: GnuTLS error -15: An unexpected TLS packet was received. Error: Disconnected from server: ECONNABORTED - Connection aborted Error: Failed to retrieve directory listing
这是我得到的结果,而不是
Command: PASV 227 Entering Passive Mode (86,150,105,147,215,59)
所以我看到由于某种原因服务器有被动模式的麻烦。 切换到活动模式有帮助,但是这不是我正在寻找的方式。
如果我禁用encryption,我也无法收到任何正确的答复PASV命令
Command: PASV Response: 500 OOPS: vsf_sysutil_bind Command: PORT 192,168,1,109,234,197 Response: 500 OOPS: priv_sock_get_int Error: Failed to retrieve directory listing Error: Connection closed by server
看来所有的端口都打开了,禁用了防火墙,其他设置都可以。 一两个星期前,它的工作完美无缺,现在发生了什么事情?
我知道这个问题已经有一段时间了。 但对于遇到这个问题的其他人来说,解决scheme似乎是要补充的
seccomp_sandbox=NO
到你的vsftpdconfiguration文件。 有关为什么需要configuration调整的血淋淋的细节,这是RedHat的错误报告 。 这似乎是vsftpd一个bug,因为它使用了Linux的“安全计算沙盒”。
希望这可以帮助!