Neler Yeni

DDOS Saldırılarını Engelleme %100 Koruma Kesin Çözüm

JateiN

Çaylak
Yardımcı Yönetici
Katılım
27 Ara 2015
Mesajlar
187
Beğeniler
19
Puanları
36
Konum
BiteKO
#1

Merhaba arkadaşlar,

Şimdi sizlere DDOS saldırılarını nasıl engelleyeceğimizi göstereceğim. Bir çok bilişim artık koruma kuruyor fakat bilmeyenler olduğunu düşünüyorum. %100 çalışıyor bizzat kendi serverimda kullanmaktayım. Lafı fazla uzatmadan anlatıma geçiyorum.


İlk olarak /etc/ dizinine geliyoruz ve rc.conf dosyasını açıyoruz.
Kod:
[/FONT][/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pf_enable[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"YES"[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pf_rules[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/etc/pf.conf"
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pf_flags[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pflog_enable[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"YES"
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pflog_logfile[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/var/log/pflog"
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pflog_flags[/FONT][/COLOR][COLOR=#007700][FONT=monospace]=[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"" [/FONT][/COLOR][COLOR=#333333][FONT=comic sans ms][FONT=2]
Şimdi güvenlik duvarını yapılandıracağız. /etc/pf.conf dosyasını Notepad++ ile açıyoruz ve aşağıdaki satırları ekliyoruz.

Kod:
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]block in allpass in quick on lo0
pass out quick on lo0
table [/FONT][/COLOR][COLOR=#007700][FONT=monospace]<[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]bloqueo[/FONT][/COLOR][COLOR=#007700][FONT=monospace]> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]persist file [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/var/db/antiddos(Buraya ben antiddos yazdım. siz ne isterseniz onu yazan. değiştirirseniz antiddos yazan yerleride değiştirin.)"
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]block quick from [/FONT][/COLOR][COLOR=#007700][FONT=monospace]<[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]bloqueo[/FONT][/COLOR][COLOR=#007700][FONT=monospace]>
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pass in quick on sis0 proto tcp from any to any port 22 keep state
pass in quick on sis0 proto tcp from any to any port 80 keep state
pass in quick on sis0 proto tcp from any to any port 3690 keep state
pass out all keep state  [/FONT][/COLOR][COLOR=#333333][FONT=comic sans ms]
Böylece bloklamış olduk. Şimdi ise db oluşturacağız. Aşağıdaki izini vermezseniz hata oluşabilir.

Kod:
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]touch [/FONT][/COLOR][COLOR=#007700][FONT=monospace]/var/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]db[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]antiddos
chmod 644 [/FONT][/COLOR][COLOR=#007700][FONT=monospace]/var/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]db[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]antiddos [/FONT][/COLOR][COLOR=#333333][FONT=comic sans ms]
Şimdi gelen saldırıları engellemek için gelen saldırıları engellemek için dosya oluşturacağız ve 751 iznini vereceğiz

Kod:
[/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]#!/usr/bin/perl

[/FONT][/COLOR][COLOR=#007700][FONT=monospace]use [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]strict[/FONT][/COLOR][COLOR=#007700][FONT=monospace];


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my [/FONT][/COLOR][COLOR=#007700][FONT=monospace]@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= ();


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]open [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/var/log/auth.log"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
while (<[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace]>) {
            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_ [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]Invalid user[/FONT][/COLOR][COLOR=#007700][FONT=monospace].*[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]from [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+)/) {
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]push[/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace], $[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]1[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
            }
            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_ [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]Did not receive identification string from [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+)/) {
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]push[/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace], $[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]1[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
            }
}
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]close [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);


@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]sort [/FONT][/COLOR][COLOR=#007700][FONT=monospace]{[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]lc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$a[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]cmp lc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$b[/FONT][/COLOR][COLOR=#007700][FONT=monospace])} @[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace];


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my [/FONT][/COLOR][COLOR=#007700][FONT=monospace]@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]allowedIPs [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= ();
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]open [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/var/db/allowed-ips"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
while (<[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace]>) {
            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_ [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+/) {
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]push[/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]allowedIPs[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
            }
}
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]close [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]IN[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]chop[/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]allowedIPs[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $tmp [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
foreach [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole eq $tmp[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            } else {
                            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]127[/FONT][/COLOR][COLOR=#007700][FONT=monospace]\[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace].0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]\[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace].0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]\[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace].1[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/) {
                                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
                            }
                            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]192[/FONT][/COLOR][COLOR=#007700][FONT=monospace]\[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace].168[/FONT][/COLOR][COLOR=#007700][FONT=monospace]\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+\.[[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]-[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]9[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]+/) {
                                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
                            }
                            foreach [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $allowedIP [/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]allowedIPs[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
                                            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=~ /[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$allowedIP[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/) {
                                                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
                                            }
                            }
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$tmp [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
            }
}


@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]sort [/FONT][/COLOR][COLOR=#007700][FONT=monospace]{[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]lc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$b[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]cmp lc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$a[/FONT][/COLOR][COLOR=#007700][FONT=monospace])} @[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace];


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $popCount [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
foreach [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]reverse [/FONT][/COLOR][COLOR=#007700][FONT=monospace]@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
            if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole eq [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
                            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$popCount[/FONT][/COLOR][COLOR=#007700][FONT=monospace]++;
            }
}


for ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $i [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$i [/FONT][/COLOR][COLOR=#007700][FONT=monospace]< [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$popCount[/FONT][/COLOR][COLOR=#007700][FONT=monospace]; [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$i[/FONT][/COLOR][COLOR=#007700][FONT=monospace]++) {
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pop [/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
}


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $list [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
foreach [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]my $asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace](@[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]assholes[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$list [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$list [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$asshole [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]" "[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
}


[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]exec [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"/sbin/pfctl -t bloqueo -T add [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$list[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"[/FONT][/COLOR][COLOR=#007700][FONT=monospace];  [/FONT][/COLOR][COLOR=#333333][FONT=comic sans ms]
Şimdi /etc/syslog.conf dosyasını Notepad++ ile açıyoruz ve aşağıdakileri ekliyoruz ;

Kod:
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]auth[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]info[/FONT][/COLOR][COLOR=#007700][FONT=monospace];[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]authpriv[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]info                                          [/FONT][/COLOR][COLOR=#007700][FONT=monospace]| [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]exec [/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]usr[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]bin[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]perl [/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]sbin[/FONT][/COLOR][COLOR=#007700][FONT=monospace]/[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]bloqueo[/FONT][/COLOR][COLOR=#007700][FONT=monospace].[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]pl  [/FONT][/COLOR][COLOR=#333333][FONT=comic sans ms]
Böylece serverimiza dışarıdan gelen bağlantıları yani saldırıları engellemiş olduk.
Yapabileceğinizi umuyorum. Dediğim gibi kendi serverimda da kullanıyorum. :)

Kod:
[/FONT][/COLOR][B][FONT=1][COLOR=#ff0000]Source:[/COLOR] universojuegos, cybergamers[/FONT][/B][COLOR=#333333][FONT=comic sans ms]
 

Üst