Solved

vsftpd, limit connections

Posted on 2003-12-04
6
873 Views
Last Modified: 2013-12-15
hi, have got vsftpd running and want to limit connections, is this possible? the docs are a bit, hmm, lacking.. great software though, easier to set up than WU and others, cheers -
0
Comment
Question by:linux_chap
  • 4
  • 2
6 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9877520
u can limit the connection by changin the values in xinetd.

check this link for full explanation.
http://www.linuxplanet.com/linuxplanet/tutorials/4505/4/
0
 

Author Comment

by:linux_chap
ID: 9877749
havn't got an xinetd file for vsftpd, so i am guesing it is running as standalone and controlled from xinetd, or did you mean to controll the overall connections from xinetd.conf by changing the defualt from 60 to something else?
instances             = 10 for example
exellent looking resource, linuxplanet..
/me new to all this :S
0
 
LVL 24

Accepted Solution

by:
shivsa earned 50 total points
ID: 9877956
it is upto u, if u want controll all the connection change the values in default or u have to put this line into service ftp to controll ftp connection.
instances             = 10

Let's use the vsftpd xinetd configuration file:

# default: off
# description: The vsftpd FTP server serves FTP connections. It uses \
#       normal, unencrypted usernames and passwords for authentication.
service ftp
{
        disable         = no
        socket_type             = stream
        wait                    = no
        user                    = root
        server          = /usr/sbin/vsftpd
        nice                    = 10
}

Notice that this file, like all of its cousins in /etc/xinetd.conf, starts with a line in the form service <servicename>. <servicename> is one of the items in /etc/services or one of the other files listed in this tutorial, and refers to the basic functionality provided by this particular tool. In the case of vsftpd, it's not hard to guess that the service is ftp.

Inside the braces are the options for this specific service. Here I'm only going to define what these particular settings mean. We'll get into the specifics of these options in the tutorial. The vsftpd setup is, from top to bottom:

    * The port is open and the service is available.
    * FTP uses TCP so that it can ensure that all of the data has arrived, and so is a streaming socket type.
    * Streaming sockets are typically set to no wait.
    * This FTP server runs as root.
    * This FTP server is located at /usr/bin/vsftpd.
    * This command runs at an average priority level.

All of these settings are in addition to what was set in xinetd.conf.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 24

Expert Comment

by:shivsa
ID: 9878228
Dear Linux_chap,

i do not complain usully but want to know why grade 'C'.

regards,
Shiv
0
 

Author Comment

by:linux_chap
ID: 9878407
sorry, but i didn't feel that helped me, being  a bit new to all this linux stuff, just copied and pasted other website, i am still at a loss as to why there is no vsftpd file in the xinetd.d directory. So I decided to do my homework first and learn all about xinetd (i think my installation of it is not right)
Soooo this was my first go on this "forum" and not sure how it all works, didn't mean to offend .After (re) reading the "how do i know what grade to give" h
thing I should of given you the chance to sort out the area of my misunderstanding with xinetd, apologies..
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9878585
okie no problem. i understand your things.

good luck.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question