Use Apache FtpServer to build an FTP server [FlashFXP]

Source: Internet
Author: User

 

Preface

Many FTP servers use Serv-U, which is usually a cracked version or a 30-day free version. We recommend a free open-source and

Simple and Easy-to-use FTP software: Apache FtpServer. The following is the setup process.

 

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog: http://www.cnblogs.com

Farmer's uncle: http://over140.cnblogs.com

 

 

Body

I. Introduction

Apache FtpServer is an FTP server developed based on Apache MINA (a high-performance Java asynchronous concurrent Network Communication Framework. It can be embedded in Java applications or run separately as a Windows service or Unix/Linux Daemon. It also provides modules integrated with Spring. (From www.open-open.com)

 

2. Preparation

: Http://mina.apache.org/ftpserver/downloads.html

This article uses version 1.0.6. Click here to download it directly.

 

Iii. Configuration

Refer to section 4. configure it in the document.--# Here, lazy will not be repeated. Here, there are two main problems:

3.1 configure Pasv Mode

If the server enables TCP/IP filtering, it cannot be connected according to the article. here we need to add some FTP knowledge. FTP has two Connection Methods: active connection mode and passive connection mode (Pasv). Here we mainly talk about Pasv mode: the client will randomly obtain a port greater than 1024 to connect to port 21 on the FTP server, after the connection is completed, the client sends commands to the FTP server through this connection. After understanding the principles, you can start:

3.1.1 open ports 21 and 1886 in TCP/IP filtering (you can set other ports on your own)

3.1.2 modify the configuration file as follows:

<Server xmlns = "http://mina.apache.org/ftpserver/spring/v1"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemaLocation ="
Http://mina.apache.org/ftpserver/spring/v1 http://mina.apache.org/ftpserver/ftpserver-1.0.xsd
"
Id = "myServer"
Max-logins = "5"
Anon-enabled = "false"
Max-anon-logins = "0"
Max-login-failures = "3"
Login-failure-delay = "30000">
<Listeners>
<Nio-listener name = "default" port = "21">
<Ssl>
<Keystore file = "./res/ftpserver. jks" password = "password"/>
</Ssl>
<Data-connection idle-timeout = "60">
<Active local-port = "1886"/>
<Passive ports = "1886"/>
</Data-connection>
</Nio-listener>
</Listeners>
<File-user-manager file = "./res/conf/myusers. properties" encrypt-passwords = "clear"/>
</Server>

Save and restart. First, the FTP server requires two ports, one upload port and one download port. Therefore, only one port is enabled. Here, the download port is fixed to 1886.

3.2 set the Directory

How to Set FTP as the drive letter root directory:

Ftpserver. user. myusername. homedirectory = F:

Note that there is no slash.

 

Iv. References

Use Apache FtpServer to build an FTP server

Apache-ftpserver Quick Start (windows)

Detailed configuration of Apache FtpServer [Baidu Library]

How FTP works

 

End

Compared with the cracked Serv-U, we prefer open source, easy to use, and easy to configure. You are welcome to try it. By the way, there is also a problem of garbled characters in the Chinese folder. If you need to change the source code after a search, you will be too late. Please wait for the upgrade to solve the problem, or you may want to share it with us if you have a simple 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.