Pureftpd Problem Set firewall

Source: Internet
Author: User
Tags ftp protocol

PureftpdIt is a fast, high-quality, and fully functional ftp server. The most important thing is that it supports setting the Default Client encoding. Pureftpd is very powerful and useful,FirewallSometimes you are blocked from connecting the FTP server to the port. Let's take a look at the solution!

First, open port 21 connected to the FTP server. in addition, the connection from Port <= 20 to any location should be allowed. this is enough to cope with the "active" mode. however, this is not enough to handle all types of FTP clients. most clients use another data transmission mode called passive mode. this mode is more secure than the "active" mode, but to make it work, you have to open more ports on the firewall.

Therefore, open some ports connected to the FTP server. these ports must be greater than 1023. the number of opened ports is more than twice the maximum number of customers you expect. if you want to accept 200 concurrent sessions, it is enough to open the port 50000--50400.

Then run pure-ftp with the "-p" option, followed by the port range set on the firewall.

For example:/usr/local/sbin/pure-ftpd-p 50000: 50400 &

Different from the general concept, the more ports open for Passive FTP, the safer the FTP server, because it is less prone to data eavesdropping.

If your firewall also implements network transmission (NAT), enable the forward port (enable port forwarding for all passive ports) for all passive ports .)

On the client side, if the client is behind the firewall, the firewall must understand the FTP protocol. on the Linux Firewall (iptables), you only need to load the ip_conntrack_ftp and ip_nat_ftp modules. on OpenBSD, ISOS, And FreeBSD 5 firewall (PF), redirect all data transmitted to port 21 to the ftp Proxy.

By reading the above, I think everyone can find out where the problem is. Go and solve it! I hope this article will be useful to you!

  • Chinese version of PureFTPd Q & A set
  • Use a shell user or virtual user to log on to pureftpd
  • Pureftpd function-system account separation
  • PureFTPd adds an FTP user database to mysql
  • Debian5 LNMP compilation and installation pureftpd Manual
  • Use Pureftpd + PureDB to build a simple Linux ftp website
  • Use pureftpd to set up an ftp server with web Management in slackware 10.1

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.