Prima comanda utila ar fi sa verificam care este traficul de intrare pe server:
comanda pe care o dam in putty este :
-----------------------------------------------------------------------------------------------------------------------------------
netstat -nat | awk '{ print $5}' | cut -d: -f1 | sed -e '/^$/d' | uniq | wc -l
-----------------------------------------------------------------------------------------------------------------------------------
---Datii Copy si apasati CLICK DREAPTA in putty.
---Si apasati enter.
Un trafic normal arata astfel:
-----------------------------------------------------------------------------------------------------------------------------------
vds# netstat -nat | awk '{ print $5}' | cut -d: -f1 | sed -e '/^$/d' | uniq | wc -l
103 --- Intre 100 si 400 Depinde cati jucatori aveti. Cam la 50 de jucatori aveti intre 70 si 120.
-----------------------------------------------------------------------------------------------------------------------------------
Un trafic mare care primeste flood arata astfel:
-----------------------------------------------------------------------------------------------------------------------------------
vds# netstat -nat | awk '{ print $5}' | cut -d: -f1 | sed -e '/^$/d' | uniq | wc -l
1500/5000 ---- Odata ce va arata Numere mari si nu aveti peste 500 de jucatori On Primiti Flood.
-----------------------------------------------------------------------------------------------------------------------------------
Daca vreti sa aflati IP-ul care va da FLood Executati Urmatoarea COmanda.
-----------------------------------------------------------------------------------------------------------------------------------
netstat -an | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort | uniq -c
-----------------------------------------------------------------------------------------------------------------------------------
Exemplu ce fel va arata IP Care va da flood.
-----------------------------------------------------------------------------------------------------------------------------------
vds# netstat -an | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort | uniq -c
1 119.111.115.119
1 119.103.72.85
2 119.97.5.175
13 127.0.0.1
2 111.223.45.55
8 111.113.153.188
1500 111.113.195.19 --- Putem Observa ca acest IP da flood La server.
1 111.109.108.169
1 111.111.125.128
1 111.111.111.120
1 111.111.171.89
95 111.111.111.111
Reset parola mysql
In ultimul timp am vazut multi detinatori de servere care nu stiu sa reseteze parola mysql din...