Egrep – Helpful linux command reference

While many people use the grep command through a pipe | there are more efficient ways of using it. I have nearly killed a server on many occasions by running cat filename |grep some-term while the command tries to list a huge file. Instead simply use egrep which is more efficient in terms of speed and system resources.

Continue reading Egrep – Helpful linux command reference

DDOS check via number of connections

DDOS check via number of connections

A quick and usefull command for checking if a server is under DDOS is

That will list the IPs taking the most amount of connections to a server. It is important to remember that the ddos is becoming more sophistcated and they are using fewer connections with more attacking ips. If this is the case you will still get low number of connections even while you are under a DDOS.

Continue reading DDOS check via number of connections