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

Blocking Net Range

Discussion in 'Tomato Firmware' started by runssh, Nov 7, 2007.

  1. runssh

    runssh LI Guru Member

    Hi,

    My log is now saturated by IPs from Shaw Communications. I'd like to block everything from their netrange:

    24.64.0.0 - 24.64.255.255

    How do I go about doing this? Via IPTABLES? If so, could you please provide a snippet of what the command would look like?

    TIA.
     
  2. roadkill

    roadkill Super Moderator Staff Member Member

    try this...
    Code:
    iptables -I INPUT -s 24.64.0.0/16 -j DROP
     

Share This Page