CloudBT CloudBT
  • 12-03-2009, 17:18:16
    #1
    netstat -ntu|awk '{print $5}'|cut -d: -f1|sort|uniq -c|sort -n|grep -v 127.0.0.1|awk '{if ($1 > 9) print $2;}'
    yapınca 10 bağlantıdan fazla çıkan ip'ler listeleniyor ya.
    Ben bu çıktıların
    78.181.34.0
    78.181.39.0 böyle değil de
    şu şekilde olmasını istiyorum
    iptables -I INPUT -s 78.181.34.0 -j DROP
    iptables -I INPUT -s 78.181.39.0 -j DROP
    Yardımcı olursanız sevinirim
  • 12-03-2009, 17:18:53
    #2
    netstat -ntu|awk '{print $5}'|cut -d: -f1|sort|uniq -c|sort -n|grep -v 127.0.0.1|awk '{if ($1 > 9) print $2;}'

    yapınca 10 bağlantıdan fazla çıkan ip'ler listeleniyor ya.

    Ben bu çıktıların
    78.181.34.0
    78.181.39.0 böyle değil de

    şu şekilde olmasını istiyorum

    iptables -I INPUT -s 78.181.34.0 -j DROP
    iptables -I INPUT -s 78.181.39.0 -j DROP

    Yardımcı olursanız sevinirim