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.

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:
    1
    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:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    just remove them from the file and then restart apf
     
  3. HostAnadolu

    HostAnadolu Member

    Joined:
    Feb 6, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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:
    38
    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??)
     
    #4 brianoz, Apr 29, 2007
    Last edited: Apr 29, 2007
  5. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    You need a firewall, I would install csf I believe there is a tool to remove old firewalls automatically.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
Loading...

Share This Page