3月 022011
 

FTP服务器: vsftpd
FTP客户端: filezilla
出错提示: GnuTLS error -8: A record packet with illegal version was received.

杯具的我, 由于上述error,折腾了很久. 最后在这篇博文(http://ramblings.linkerror.com/?p=45)里找到一点提示,

然后就请出wireshark,在收到服务器的一条500 opps之后
Pg%,E>jL@2vVR#X=czgeGi394500 OOPS:

客户端发出了一个RST

紧接着,服务器返回了一个response,
Pg%,EcjM@2v0R#X=czgeG394unrecognised variable in config file: local_rot

揭示了出错的原因,原来是vsftpd服务端的配置文件写错了!

经检查,是我将
local_root=/aaaa/bbbb/
错写成了
local_rot=/aaaa/bbbb/

下一页附上那篇博文,以作记录.

12月 222010
 

在路由器后,使用filezilla通过active mode连接ftp服务器,有时会遇到经常断线的问题.为什么说”有时”,因为连其中一台服务器正常不断线,连另一台就时常断线,所以许久没找到原因.

今天去filezilla官网看了一下说明,才发现我可能犯了一个错误. 给filezilla限定的port range太窄了,以至于同时传送很多文件时,新的tcp连接没有端口可以使用.

所以,如果你也有相同的困扰,那就把防火墙可允许的port范围调大一点,当然了ftp server的连接数限制不用改变.
同理,如果使用pasv mode,ftp server允许的port range也要大大于连接数限制. 使得传送另一个文件时,有端口可用.

If you do not want to allow incoming connections on all ports, or if you have a NAT router, you need to tell FileZilla to use a specific range of ports for active mode connections. You will have to open these ports in your firewall. If you have a NAT router, you need to forward these ports to the local machine FileZilla is installed on. Depending on your router model, you can either forward a range of ports or you need to forward all ports individually.

Valid ports can be from 1 to 65535; however, ports less than 1024 are reserved for other protocols. It is best to choose ports greater than or equal to 50000 for active mode FTP. Due to the nature of TCP (the underlying transport protocol), a port cannot be reused immediately after each connection. Therefore, the range of ports should not be too small to prevent the failure of transfers of multiple small files. A range of 50 ports should be sufficient in most cases.