netstat -n | grep SYN_RCVD komutunu kulanıcak ve SYN_RCVD ile gelen tüm ipleri
/sbin/route -q add ipadresi 127.0.0.1
şeklinde engelleyecek sh dosyası lazım
deneme fırsatım olmadı ama çalışması lazım.
#!/bin/bash
while true;
do
for i in ` netstat -tanpu | grep "SYN_RCVD" | awk {'print $5'} | cut -f 1 -d ":" | sort | uniq -c | sort -n | awk {'if ($1 > 5) print $2'}` ;
do
echo $i;
/sbin/route -q add $i 127.0.0.1;
done;
done