Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Permanently Ban IP

Discussion in 'General Discussion' started by cancer10, Jun 29, 2007.

  1. cancer10

    cancer10 Well-Known Member

    Joined:
    Aug 27, 2006
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    How do I ban an IP permanently.

    IPtables does not ban permanently, it removes the IP after the server reboots.




    Thanx
     
  2. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    166
    All the rules for IPTABLES are saved in /etc/sysconfig/iptables file. If you are using apf configuration file resides under /etc/apf.

    Regards,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    Actually IPTABLES does ban permanently!

    Sounds like you haven't setup an /etc/sysconfig/iptables file

    Without that file, your iptable settings are only stored in memory alone
     
  4. expedio

    expedio Active Member

    Joined:
    Jun 30, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    I'd suggest going for CSF. It has nice GUI and you can block the ips using command line as well as WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cancer10

    cancer10 Well-Known Member

    Joined:
    Aug 27, 2006
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Link to download?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,437
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  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