Solved

vsftpd, limit connections

Posted on 2003-12-04
6
876 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 104
CentOS 7 Linux for HP DL380 G4 32Bits 7 101
Setup Ubuntu 16.04 to use LDAP for user login and authentication 2 254
Enable SPF on IMSVA 6 65
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

737 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