Linux VSFTPD Connection Timeout workaround

Source: Internet
Author: User

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
    1. Vi/etc/vsftpd/vsftpd.conf
Copy Code 2, add the following information at the bottom
    1. Pasv_enable=yes #开启被动模式
    2. pasv_min_port=4000 #随机最小端口
    3. pasv_max_port=5000 #随机最大端口
Copy code 3, load kernel ip_conntrack_ftp and ip_nat_ftp (terminal execution)
    1. Modprobe ip_conntrack_ftp
    2. Modprobe ip_nat_ftp
Copy Code 4, configure iptables open 4000 to 5000 ports
    1. Vi/etc/sysconfig/iptables under the *filter.
    2. -A Output-p TCP--sport 4000:5000-j ACCEPT
    3. -A Input-p TCP--dport 4000:5000-j ACCEPT
Copy code 5, load iptables configuration
    1. Iptables-restore < /etc/sysconfig/iptables
Copy Code 6, restart VSFTPD
    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.