Welcome to the forum 👋, Guest

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

  • PËRSHËNDETJE VIZITOR!

    Nëse ju shfaqet ky mesazh do të thotë se ju nuk jeni regjistruar akoma. Anëtarët e rregjistruar kanë privilegjin të marrin pjesë në tema të ndryshme si dhe të komunikojnë me anëtarët e tjerë. Bëhu pjesë e forumit Netedy.com duke u REGJISTRUAR këtu ose nëse ke një llogari KYCU. Komunikim alternative i ketij forumi me vajza dhe djem nga te gjithe trevat shqiptare? Hyr ne: CHAT SHQIP.

Anti-ddos apache2 për Debian/Ubuntu

centos

ⓃⒺⓉⒺⒹⓎ.ⒸⓄⓂ
ANETAR ✓
Regjistruar më
Dhj 13, 2004
Mesazhe
39,791
Ky tutorial esht i thjesht dhe i bazuar ne 3 module te ndryshme qe i perkasin apache2.
Apache2 eshte programi me i hapur sot per sot per sa i perket web serverave dhe shum i thjeshte ne perdorim.
Per te lexuar me shum rreth apache2 kliko ketu.
KUJDES: KERKOHET root AKSES

Fillimisht do instalojme mod-evasive module

1. sudo apt-get -y install libapache2-mod-evasive.

krijojme directorin dhe filen e logsave qe do ruhen
2. sudo mkdir -p /var/log/apache2/evasive.
ja kalojme owner userit www-data
3. sudo chown -R www-data:root /var/log/apache2/evasive.

Komandat sipas numrave.
Me pas: sudo nano /etc/apache2/mods-available/mod-evasive.load
me pas vendosim kete konfigurim:
Code:
DOSHashTableSize 2048
DOSPageCount 20 
DOSSiteCount 300 
DOSPageInterval 1.0
DOSSiteInterval 1.0
DOSBlockingPeriod 10.0
DOSLogDir
Ruaje CTRL + X, Pastaj shkruaj yes

Komanda rradhes restart apache2: service apache2 restart

Tani do instalojme modulin tjeter qe na ndihmon te mbrohemi nga QoS Attacks. Slowloris
Shum i thjeshte me dy komanda:
1: sudo apt-get -y install libapache2-mod-qos
2: nano /etc/apache2/mods-available/qos.conf (Kontrollojme qe ta pershtasim me konfigurimin qe na duhet)

Komanda rradhes restart apache2: service apache2 restart

Moduli rradhes eshte DNS Injection, sulmet qe behen per infektimin e IP adresave.
1: sudo apt-get -y install libapache2-mod-spamhaus.
2: sudo touch /etc/spamhaus.wl
Editojme konfigurimin e apache2
3: sudo nano /etc/apache2/apache2.conf
Shtojme kete kod ne fund:
Code:
<IfModule mod_spamhaus.c>
  MS_METHODS POST,PUT,OPTIONS,CONNECT
  MS_WhiteList /etc/spamhaus.wl
  MS_CacheSize 256
</IfModule>
Ruaje CTRL + X, Pastaj shkruaj yes
Komanda rradhes restart apache2: service apache2 restart

E rendesishme ne kte proces eshte kontrollimi i logseve here pas here pasi mund te bllokoje dhe individ te thjesht dhe jo dashakeqes!
 

Theme customization system

You can customize some areas of the forum theme from this menu.

Choose the color combination according to your taste

Select Day/Night mode

You can use it by choosing the day and night modes that suit your style or needs.

Welcome to the forum 👋, Guest

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.