How to solve the failure of reading the directory list by pureftp

Source: Internet
Author: User

Recently, when we used pureftp, we encountered a problem where the file directory could not be read or the reading speed was slow. At the same time, we configured iptables firewall rules on the server, which caused the problem mainly.

The solution is as follows:

1. First check whether ports 20 and 21 are enabled. If not, enable them.

2. StopIptables: ServiceIptablesStop, connect again, and read the list successfully.

3. ModifyIptables-config configuration file:

Open: Vim/etc/sysconfig/iptables-config

SetIptables_modulesChanged to iptables_modules = "ip_conntrack_netbios_ns ip_conntrack_ftp ip_nat_ftp"

Save the file.

4. Start iptables:ServiceIptables start

Solve the problem!


Reference: http://www.ttlsa.com/linux/prueftp-read-list-faild/

Http://www.ttlsa.com/linux/ip_conntrack-table-full-dropping-packet-solution/

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.