Portal Home > Knowledgebase > Articles Database > pure-ftpd too many connection | david510 or any expert required


pure-ftpd too many connection | david510 or any expert required




Posted by xserverx, 09-02-2007, 08:41 PM
I have too many connection from 202.96.5.29 through pure-ftpd : I block this ip (202.96.5.29 ) with : but is not blocked always I have same too many connection ? how can I force block this Ip ??

Posted by cywkevin, 09-02-2007, 09:20 PM
sbin/iptables -A INPUT -s 202.96.5.29 -j DROP try append instead of insert.

Posted by xserverx, 09-02-2007, 09:42 PM
same problem

Posted by Dexqt, 09-02-2007, 09:57 PM
xserverx, Instead of using iptables directly may I suggest something like APF or even CSF, use CSF if you're using cPanel as it's got a great GUI that intergates with WHM. http://rfxnetworks.com/apf.php and http://www.configserver.com/cp/csf.html

Posted by david510, 09-02-2007, 11:16 PM
Installing APF and adding the IP to the deny list will help. You can block the IP using tcp wrappers. Add the IP to the file /etc/hosts.deny as follows. ALL : 202.96.5.29

Posted by xserverx, 09-03-2007, 09:05 AM
david510 and Dexqt thank you very much but I am using APF + BFD and I configure it for block any login failures with : /sbin/iptables -I INPUT -s 62.68.36.70 -j DROP;route add 62.68.36.70 reject;apf -d 62.68.36.70;/sbin/iptables -A INPUT -s 62.68.36.70 -j DROP for example but the Ip isn't blocked also I have my /etc/hosts.deny is empty can I configuer this command in my BFD for add any failuers IP to /etc/hosts.deny for example:

Posted by david510, 09-03-2007, 09:11 AM
Yes, you can configure that. As a safety measure add your ISP ip or any proxy server IP to the file /etc/hosts.allow. To block that IP, you may try this. First stop the ftp service and after that add the IP to the apf deny file (/etc/apf/deny_hosts.rules) and restart apf.

Posted by xserverx, 09-03-2007, 10:02 AM
very nice david really you are the hard attitude man (f)



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
iotop issue (Views: 671)
Installing GD, How? (Views: 703)


Language: