Linux Vsftpd Connection Timeout workaround
2013-11-13 10:58:34| Category: Default Categories | Report | Font size Subscription
Workaround(http://www.lingdus.com/thread-8189-1-1.html) Configure the passive mode on the server side to solve this problem from the root cause.
1. Edit the VSFTPD configuration file
- Vi/etc/vsftpd/vsftpd.conf
Copy Code 2, add the following information at the bottom
- Pasv_enable=yes #开启被动模式
- pasv_min_port=4000 #随机最小端口
- pasv_max_port=5000 #随机最大端口
Copy code 3, load kernel ip_conntrack_ftp and ip_nat_ftp (terminal execution)
- Modprobe ip_conntrack_ftp
- Modprobe ip_nat_ftp
Copy Code 4, configure iptables open 4000 to 5000 ports
- Vi/etc/sysconfig/iptables under the *filter.
- -A Output-p TCP--sport 4000:5000-j ACCEPT
- -A Input-p TCP--dport 4000:5000-j ACCEPT
Copy code 5, load iptables configuration
- Iptables-restore < /etc/sysconfig/iptables
Copy Code 6, restart VSFTPD
- Service VSFTPD Restart
Copy code FTP Small file will time-out interrupt problem resolution--VSFTPD hung up.Friday, 04/29/2011-18:54-xijie88
Resolution of time-out interrupts for FTP-transmitted small filesMonday, 03/28/2011-20:07-wdlinux
Workarounds for time-out interrupts when using FTP to pass many small files
Method One
Vi/www/wdlinux/etc/vsftpd.conf
Plus
Data_connection_timeout=3
Method Two
echo "Data_connection_timeout=3" >>/www/wdlinux/etc/vsftpd.conf
Restart VSFTPD Server
Service VSFTPD Restart
Complete
I followed the method of a plus, and then restart the vsftpd,vsftpd will not start up again, the code was deleted after restarting the server VSFTPD no way to start
Linux VSFTPD Connection Timeout workaround