Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

vsftpd, limit connections

Posted on 2003-12-04
6
Medium Priority
?
896 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 100 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Industry Leaders: 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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…
Suggested Courses

688 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