• 27-07-2006, 15:44:40
    #10
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Elazığlı168 adlı üyeden alıntı:
    çok yüksek değerlerdeki ip leri banlamak için


    iptables -I INPUT -j DROP -s IPNumarası

    komutunu çalıştır
    Banlanan ip'leri listelemek ve ban'ı kaldırmak için ne yapmamız gerekiyor acaba ?
  • 27-07-2006, 15:56:11
    #11
    Kimlik doğrulama veya yönetimden onay bekliyor.
    ssh da root olduğunu varsayıyorum
    kendi makinemden örnek veriyorum
    not : apf için geçerli apf zaten iptables'ın kullanıcı dostu versiyonu gibi birşey

    pico /etc/apf/deny_hosts.rules yaz

    Alıntı
    ##
    # deny_hosts
    #
    # Trust based rule file to define addresses that are implicitly denied.
    #
    # Format of this file is line-seperated addresses, IP masking is supported.
    # Example:
    # 192.168.2.1
    # 192.168.5.0/24
    #
    # advanced usage
    #
    # The trust rules can be made in advanced format with 4 options
    # (proto:flowort:ip);
    # 1) protocol: [packet protocol tcp/udp]
    # 2) flow in/out: [packet direction, inbound or outbound]
    # 3) s/d=port: [packet source or destination port]
    # 4) s/d=ip(/xx) [packet source or destination address, masking supported]
    #
    # Syntax:
    # proto:flow:[s/d]=port:[s/d]=ip(/mask)
    # s - source , d - destination , flow - packet flow in/out
    #
    # Examples:
    # inbound to destination port 22 from 192.168.2.1
    # tcp:in:d=22:s=192.168.2.1
    #
    # outbound to destination port 23 to destination host 192.168.2.1
    # out:d=23:d=192.168.2.1
    #
    # inbound to destination port 3306 from 192.168.5.0/24
    # d=3306:s=192.168.5.0/24
    #
    ##
    # added 88.226.33.146 on 07/26/06 15:37:19
    88.226.33.146
    # added 88.232.70.99 on 07/26/06 16:39:34
    88.232.70.99
    # added 222.122.47.31 on 07/27/06 00:00:07 with comment: {bfd.sshd}
    222.122.47.31
    # added 81.213.250.46 on 07/27/06 09:40:03 with comment: {bfd.pure-ftpd}
    81.213.250.46
    bu added yanaları ve alt satırındakiler banlanan şahıslardır
  • 27-07-2006, 16:08:08
    #12
    @osman, bilgi için teşekkürler.Fakat şuan apf kurulu değil.En iyisi apf'yi kurup devam etmek.

    h**p://www.webhostgear.com/61.html buradan kurulum yapacağım.Başka bir kurulum rehberi var mı acaba ?
  • 27-07-2006, 17:46:44
    #13
    ip banlama:
    iptables -I INPUT -s 213.247.251.91 -j DROP

    ip blogu banlama: ( bu özellikle uzakdoğu ip blocklamak için gerekli )

    iptables -I INPUT -s 25.55.55.55 -j DROP (for one IP)
    iptables -I INPUT -s 80.58.0.0/16 -j DROP (for a class C - that's X.X.X.(0-255) )
    iptables -I INPUT -s 61.218.0.0/24 -j DROP (for a class B - that's X.X.(0-255).(0-255) )
    iptables -I INPUT -s 221.0.0.0/8 -j DROP (for a class A - that's X.(0-255).(0-255) )

    iptable ban kaldırma:

    iptables -D INPUT -s 25.55.55.55 -j DROP
  • 27-07-2006, 17:59:20
    #14
    Teşekkürler radmin.Peki banladığımız ip'leri nasıl listeleriz ?