The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

deny ip range

Discussion in 'General Discussion' started by dabber, Dec 21, 2005.

  1. dabber

    dabber Registered

    Joined:
    Aug 27, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi. Can someone tell if I can deny a range of IP's from a site without entering one at a time? Example: deny IP's 85.0.0.0 through 85.255.255.255
     
  2. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India

    Hello,

    You can block the range with the help of iptables

    Eg : iptables -A INPUT -s 85.0.0.0/8 -j DROP
     
  3. dodgeneo

    dodgeneo Registered

    Joined:
    Dec 26, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    HI,

    I had this very question :)

    But I don't understand your answer as I'm very, very new to using the Cpanel - and I am a user (not a site admin) looking for answers as my host is clueless... :|

    Is there a way to use those iptables as a user, and not an administrator?

    If so what, exactly, would I enter into the "Add an IP Deny:" field?

    For example I would like to deny access from 217.174.*.*

    Thanks for your help!

    Dodge
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    you need root access and run from comand line SSH

    if your host is cluless time to find a new host it a basic linux comand when iptables are installed
     
  5. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    If you want to use iptables, you should have the root access on the server. But if you use ip deny manager , it will block the ip using .htaccess file . You can add the block of ip using ip.

    Eg : 217.174.

    Then add, I hope it will help you to add the block of 217.174.X.X ips ;)
     
  6. dodgeneo

    dodgeneo Registered

    Joined:
    Dec 26, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you! :)

    Dodge
     
  7. VirtuaLira

    VirtuaLira Well-Known Member

    Joined:
    Feb 1, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chile
    I have the same issue. but... what means the /8 ??

    ex:

    85.0.0.0/8 (what means the 8) ?
     
Loading...

Share This Page