iptables handy guide
iptables used to setup, maintain and inspect the tables of IP packet filter rules through Linux Kernel. You can modify or manage the rules through the command from console or SSH.
To list the IPs that is being blocked, you may run the command as below.
-
iptables -L -n
You will get the list of the IP that is being listed from the Iptables Kernel rules as command above.
To block an IP using iptables,
-
iptables -D INPUT -s xxx.xxx.xxx.xxx -j DROP
where xxx.xxx.xxx.xxx is the actual IP
To block an IP using specify port,
Read the rest of this entry »
Linux Top Process
When you used Linux top process to monitor your server/PC, you might want to know what meant by the Cpu(s) variable used in percentage.
Eg.
top - 16:24:04 up 80 days, 18:23, 1 user, load average: 0.48, 0.46, 0.44
Tasks: 226 total, 2 running, 222 sleeping, 0 stopped, 2 zombie
Cpu(s): 2.2%us, 2.5%sy, 0.4%ni, 92.0%id, 3.0%wa, 0.0%hi, 0.0%si, 0.0%st
1. us -> User CPU time: The time the CPU has spent running users' processes that are not niced.
2. sy -> System CPU time: The time the CPU has spent running the kernel and its processes.
3. ni -> Nice CPU time: The time the CPU has spent running users' proccess that have been niced.
4. wa -> iowait: Amount of time the CPU has been waiting for I/O to complete.
5. hi -> Hardware IRQ: The amount of time the CPU has been servicing hardware interrupts.
6. si -> Software Interrupts.: The amount of time the CPU has been servicing software interrupts.
Original Source: http://www.seoforclients.com/hr/top/
![[Google]]( http://linux.mickgenie.com/wp-content/plugins/easy-adsenser/google-light.gif)