View Full Version : Pure-ftpd Question
derek
2003-09-30, 10:07 AM
I am currently running Red Hat 7.3 with Pure-ftpd installed as my FTP server. I have multiple connections to the FTP server orginating from one IP (our WAN IP in an office). If we have multiple sessions going when someone tries to login they get this error...
Cannot make connection to host. Too many connections (3) from this IP.
Is there any way to increase the limit for connections from an IP?? I've tried to find something in cPanel and have fished through some files but it's like looking for a needle in a haystack. Can anyone provide some insite?
Thanks,
Derek
I've never used Pure-ftpd, but from googling I found this:
Users need a shell listed in /etc/shells to get restricted or unrestricted
FTP access. Alternatively, you can give them "ftp" as a shell. Users with a
"ftp" shell will be able to login through FTP only : no telnet, no SSH. And
there's no need (and you shouldn't do so) for an "ftp" entry in /etc/shells.
Here are the recognised switches :
- '-C <max connection per ip>' : Limit the number of simultanous connections
coming from the same IP address. This is yet another very effective way to
prevent stupid denial of services and bandwidth starvation by a single user.
It works only when the server is launched in standalone mode (if you use a
super-server, it is supposed to do that) . If the server is launched with
'-C 2', it doesn't mean that the total number of connections is limited to 2.
But the same client, coming from the same machine (or at least the same IP),
can't have more than two simultaneous connections. This feature needs some
memory to track IP addresses, but it's recommended to use it.
still looking around...
There is a little more info here:
http://www.pureftpd.org/README
derek
2003-09-30, 11:46 AM
Thank you for the documentation, I've read over it and have found a lot of useful stuff. My server automatically starts the FTP server when it boots up.
Where is the call to start the FTP server and can I modify that to use the switch '-C' or is there a file that I need to change? I'm relatively new to the world of Unix and Web Servers so I appologize for such elementary questions.
You'll have to modify the init script to use the -C option. The init script should be:
/etc/init.d/pureftpd
derek
2003-09-30, 12:42 PM
Thank you so much for your help. I went into the file and it had me go into a text file used by pure-ftp to hold all its variables. I changed the number of max users from one IP and it works! This makes things so much easier to operate. I really appreciate your help.
Derek
You're welcome, glad you got it working! :)
grady
2003-10-08, 22:52 PM
i have change my product from ensim to plain redhat .....
and the server have been up for 12h ... but when i use webmin to see my WU_FTP Server it said ....
The FTP server /usr/sbin/in.ftpd could not be found on your system. Maybe it is not installed, or your FTP Server module configuration is incorrect.
so ... how can i solve this prob ??
knightfoo
2003-10-09, 08:31 AM
Originally posted by grady
i have change my product from ensim to plain redhat .....
and the server have been up for 12h ... but when i use webmin to see my WU_FTP Server it said ....
The FTP server /usr/sbin/in.ftpd could not be found on your system. Maybe it is not installed, or your FTP Server module configuration is incorrect.
so ... how can i solve this prob ??
If you are using a RedHat9 server, wu-ftpd is not installed by default. The default ftpd for RedHat9 is vsftpd (very secure ftpd). If you want to use the wu-ftpd module for Webmin to manage your ftpd, you will need to install the wu-ftpd RPM. I would recommend sticking with vsftpd or installing proftpd though (I think there is a webmin module for protftpd).
-knightfoo
spoon
2003-10-09, 11:55 AM
Sticking with vsftpd would be a good idea, mainly due to the fact that it's pretty small and the primary focus of development is on keeping the server fast and secure.
The other two "big name" FTP servers are WU-FTPD and ProFTPD. Both of these servers have a history of remote root exploits (wu-ftpd was the basis of a Linux worm a few years ago), but have the advantage of being highly configurable and make it possible to setup vhost sites.
Webmin offers modules for WU-FTPD and ProFTPD as part of their default install, but you can also find third party modules to support PureFTPd and vsftpd on this site (http://webadminmodules.sourceforge.net/?page=Servers).
grady
2003-10-10, 01:26 AM
that means i need to d'load that soft to my server and configure it !!! :bang:
:bang:
:confused: that right ?? or i'm wrong !!! pls some one, pls tell me step by step, that i really appriciate
:beer:
:bang:
Originally posted by grady
that means i need to d'load that soft to my server and configure it !!! :bang:
:bang:
Yes, you have to download it to your server and configure it...don't think it'd show up automagically without doing so. ;)
To download wu-ftpd:
http://mirrors.kernel.org/redhat/redhat/linux/updates/<your redhat version>/en/os/i386/
The "step by step" instructions, FAQ, etc. is here:
http://www.wu-ftpd.org/
If you want ProFTPD you can find everything you need here:
http://proftpd.linux.co.uk/
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.