În acest tutorial se vorbeşte despre o protecţie care blocheaza Syn Floodurile şi atacurile DDOS care sunt atacuri la reţeaua serverului .
- Acest script realizează un rezumat al traficului de pe server şi îl salvează într-un fişier.
- Iar aici aveţi scriptul:
Acum trebuie să faceţi un fişier nou, adaugaţi acest script în fişierul nou, salvaţi şi redenumiţil în cheeck.sh. Apoi unde este scris : [email protected] adăugaţi adresa voastra de e-mail pentru a putea primi avertismentele serverului în privinţa atacurilor .
Practic vorbind acest script, salvează un Ip (acel ip de la care primiţi atacurile)iar dupa un total de atacuri la server(minim 200)acest script o să dea ban acestui Ip, care se află în reţeaua serverului vostru şi o să salveze acest ip într-un fişier numit banlist.txt
- Acum sa trecem la al doilea script:
Al doilea script repetă ./cheeck.sh în modul de a avea o protecţie activă 24/24 la server .
Acum, primul script salvaţil cu acest nume "cheeck.sh" (apoi mergeţi în server, cu ajutorul programului FileZilla sau WinScp şi adăugaţi fişierul în /root şi daţii permisiunile 777)
Al doilea script salvaţil cu acest nume"ddos.sh"(apoi mergeţi în server, cu ajutorul programului FileZilla sau WinScp şi adăugaţi fişierul în /root şi daţii permisiunile 777)
Acum în /root creaţi un folder numit "system" iar în el creaţi un fişier numit "banlist.txt"
- Înainte de a da drumul la server scrieţi următoarele comenzi în consolă :
În acest mod o să aveţi serverul vostru protejat de atacurile DDOS si Anti Flood .