Slow transfer speed and failure to transfer files on pureftp

Source: Internet
Author: User
Tags iptables

Pureftp itself can transmit files and reflect speed, but when only active mode is turned on, the linked server will become very unstable, often with file transfer failures,
In this case, we can solve the problem by opening the passive mode.

Passive mode by default is to open a port range, all passive FTP links through the scope, you can view the configuration file acquisition, generally installed in the/usr/local/pureftpd/pure-ftpd.conf

Find this configuration entry, the passive mode available port defaults to 20000-30000

The code is as follows Copy Code
PassivePortRange 20000 30000


You can use passive mode on FTP links simply by adding these ports to the firewall allow rules.

The code is as follows Copy Code


Vi/etc/sysconfig/iptables


Add one line

The code is as follows Copy Code
-A input-m state--state new-m tcp-p TCP--dport 20000:30000-j ACCEPT


Reboot firewall iptables

The code is as follows Copy Code


Service Iptables Restart

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.