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.

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,
     
  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.
     
  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:
    15,617
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page