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!

How Can I Delete All Deny Ip From APF

Discussion in 'General Discussion' started by HostAnadolu, Apr 29, 2007.

  1. HostAnadolu

    HostAnadolu Member

    Joined:
    Feb 6, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    Hello. i looked /etc/apf/deny_host.rules and i saw a lot of deny ip adresses. i want to delete these ip adresses from deny ip adresses. i can do it apf -u 123.123.123.123 manually but i want to remove all of them. How can i do it?
     
  2. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    7
    Trophy Points:
    318
    Location:
    back woods of NC, USA
    just remove them from the file and then restart apf
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HostAnadolu

    HostAnadolu Member

    Joined:
    Feb 6, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    151
    i tried it but i didn't congrulate. Do you know any other way ?
     
  4. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    168
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Delete or comment out the lines in apf.deny as described by the previous user, then restart apf with "apf -r".

    I don't think any other way works. Of course, you could replace APF with the more recent CSF which has a WHM user interface which might be easier for you.

    (What does "congrulate" mean??)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 brianoz, Apr 29, 2007
    Last edited: Apr 29, 2007
  5. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    You need a firewall, I would install csf I believe there is a tool to remove old firewalls automatically.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    csf will also rotate old IP's off old IP's based on the total number of IP's in the deny file for you.
     
    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