[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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice