Prima comanda utila ar fi sa verificam care este traficul de intrare pe server:
comanda pe care o dam in putty este :
Cod: Selectaţi tot
systat -ifstat 1Cod: Selectaţi tot
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average
Interface Traffic Peak Total
lo0 in 0.000 KB/s 1.478 KB/s 4.082 MB
out 0.000 KB/s 1.478 KB/s 4.082 MB
re0 in 0.058 KB/s 1.485 KB/s 115.392 MB
out 0.133 KB/s 19.357 KB/s 539.823 MBUn trafic mare care primeste flood arata astfel:
Cod: Selectaţi tot
/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10
Load Average
Interface Traffic Peak Total
lo0 in 0.000 KB/s 1.478 KB/s 4.082 MB
out 0.000 KB/s 1.478 KB/s 4.082 MB
re0 in 15.25 MB/s 9.5 MB/s 850.221 MB
out 0.133 KB/s 19.357 KB/s 539.823 MBComanda de mai jos puteti verifica ce ipuri au mai mult de 5 conexiuni catre server:
Cod: Selectaţi tot
netstat -n -f inet | grep "ESTAB" | awk '{print $5}' | sed -E 's/\.[0-9]+$//' | sort | uniq -c | awk '($1 > 5){print $2}'








