1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[help] blocking ip mask

Discussion in 'Tomato Firmware' started by biatche, Feb 13, 2012.

  1. biatche

    biatche Network Guru Member

    im using toastman's tomato

    how do i block a range of destination ips

    example

    1.2.3.*
    1.2.*.*

    1.2.3.40-1.2.3.50

    most importantly for now, 1.2.3.* if the rest cannot be done

    thanks in advance
     
  2. kthaddock

    kthaddock Network Guru Member

    1.2.3.32 - 1.2.3.47
    1.2.3.32/28
    255.255.255.240

    1.2.3.32 - 1.2.3.63
    1.2.3.32/27
    255.255.255.224

    iptables -I INPUT -s 1.2.3.32/28 -j DROP
     

Share This Page