Set virtual hosts in Proftpd Environment

Source: Internet
Author: User

ProFTPDThe design goal is to implement a secure and easy-to-set FTP Server. This article describes how to implement a VM in The Proftpd environment.

It can be implemented through the command: VirtualHost. The simplest example is as follows:

ServerName "virtual FTP server"

If you only want to access a VM anonymously, use the following! Command:

Serv erName "virtual FTP server"

DenyAll

User private

Group private

AllowAll

In this way, the host of 192.168.2.35 only allows anonymous logon.

The content of my proftpd. conf configuration file is:

 
 
  1. # This is a basic ProFTPD configuration file (rename it to  
  2.  
  3. # 'proftpd.conf' for actual use. It establishes a single server  
  4.  
  5. # and a single anonymous login. It assumes that you have a user/group  
  6.  
  7. # "nobody" and "ftp" for normal operation and anon.  

ServerName &! Quot; test.com.cn FTP Server"

ServerType standalone

DefaultServer on

# Port 21 is the standard FTP port.

Port 21

# Umask 022 is a good standard umask to prevent new dirs and files

# From being group and world writable.

Umask 022

 
 
  1. # To prevent DoS attacks, set the maximum number of child processes  
  2.  
  3. # to 30. If you need to allow more than 30 concurrent connections  
  4.  
  5. # at once, simply increase this value. Note that this ONLY works  
  6.  
  7. # in standalone mode, in inetd mode you should use an inetd server  
  8.  
  9. # that allows you to&! nbsp;limit maximum number of processes per&nb sp;service  
  10.  
  11. # (such as xinetd)  

MaxInstances 30

RequireValidShell off

ServerIdent off

# Set the user and group that the server normally runs.

User nobody

Group nobody

# Normally, we want files to be overwriteable.

AllowOverwrite on

# A basic anonymous configuration, no upload directories.

User ftp

Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"

UserAlias anonymous ftp

# Limit the maximum number of anonymous logins

MaxClients 10

# We! ; Want 'Welcome. msg 'displayed at login, and '. message' displayed

# In each newly chdired directory.

DisplayLogin welcome. msg

DisplayFirstChdir. message

# Limit WRITE everywhere in the anonymous chroot

DenyAll

DefaultRoot ~ Ftpusers

ServerName "virtual FTP server"

DenyAll

User private

Group private

AllowAll

As described in this article, I hope you can understand how Proftpd sets up a VM!

  • Proftpd does not display ftp server version information for enhanced security
  • Implement Proftpf to limit future access to a directory
  • Gentleman LAN ProFTPD in FTP Server
  • Features of ProFTPD
  • Main features of ProFTPD
  • ProFTPD operation process
  • Proftpd Overview

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.