VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular service: Issues, Tips, and Solutions

How is ServerTune different from other companies?

*** Accessing ServerTune's Knowledgebase

Space
Search:    Advanced search
Browse by category:
How can I block IP addresses?
Printer Friendly
email to a friend
Add comment Add comment
Views: 722
Votes: 0
Comments: 0
Posted: 03 Jun, 2007
by: Support T.
* * * * *
Updated: 19 Feb, 2008
by: Support T.

SSH to the server and run The following command to see the IPs with most concurrent connections:

/bin/netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n |more

Block un-wanted IPs using IPTables

/sbin/iptables -I INPUT -s 12.34.56.78 -j DROP
/sbin/service iptables save
/sbin/service iptables restart

Other articles in this Category
document How can I tranfser my data from one server to another?
document Linux Text Editors :: pico, vi, and emacs
document What ports do I need to open in my firewall?
document HTML Codes
document How to get rpm command to show the files an RPM file has installed?
document How can I find the local path to a command line binary?
document I added more RAM Memory, yet the system shows the wrong amount
document perl: warning: Setting locale failed.
document HowTo :: manage Linux partitions
document HowTo :: check on the current version of CentOS installed on your server
document HowTo clone, image, and re-size your Hard Drive(s) and/or partition(s)
document HowTo :: remove the Pass Phrase set on an SSL key
document Is rebooting my Linux/FreeBSD server a useful practice?



RSS