To block an ip address from accessing your linux box, you can use the following iptables rule:
iptables -A INPUT -s 222.124.24.131 -j DROP
If you just need to block a certain port (i.e. port 22 for SSH), you would do it like so:
iptables -A INPUT -s 222.124.24.131 -p tcp --destination-port 22 -j DROP
Notice: This involves some command-line editing, and could potentially cause damage to your system. Do not follow these commands if you don’t understand what they do. I am not liable for any damages to your property.
If you’re like me, you’ve doubtless struggled with installing ESX 2.5’s VMWare Tools in the later releases of CentOS (v5.x). There is some sort of bug in the vmware-config-tools.pl script that gets installed by the main vmware-tools-installer, and tells you that your kernel-headers do not match your running kernel.
- From VMware ESX VirtualCenter: go to VM> Install VMware Tools
- From the VM: mount the virtual cd drive
mount /dev/cdrom /mnt/
- Extract VMware Tools to /tmp/
tar -C /tmp -zxvf /mnt/VMwareTools-5.6.3-12345.tar.gz
- Unmount the virtual cd drive
umount /mnt
- Now run the installer
cd /tmp/vmware-tools-distrib
./vmware-install.pl
- When asked Do you want to run vmware-config-tools.pl?, answer “No”.
After following the above instructions, you can then proceed to the following steps. Just be sure that your kernel headers *do* actually match before disabling the check below. You can check that by comparing the results of these two commands:
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers

If you open the file in nano (or gEdit if you have the GUI installed), search (ctrl-w in nano) for ”load into the running kernel.” Go up six lines from that where you should see this if statement:
if (not ($header_version_uts eq $gSystem{'uts_release'})) {
Take the “not” out, so that the line looks like this:
if (($header_version_uts eq $gSystem{'uts_release'})) {
Save the file, and re-run it, violá! It’s installed.
Thanks to
http://www.cyberciti.biz/tips/linux-is-supposed-to-be-easy.html
I appreciate his balanced view, and his objective look at this subject. Oh, and don’t forget his last point; it’s the most important point of all!