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 to add IP to the allow list in APF?

Discussion in 'General Discussion' started by Pvnallly, Jun 28, 2011.

  1. Pvnallly

    Pvnallly Member

    Jun 8, 2011
    Likes Received:
    Trophy Points:

    I have a client whose ISP just put him on an IP that appears to be blocked by APF on my server. When I turn off APF, he can access the website and his emails, but when I turn APF back on, he is denied.

    I have been trying to figure out how to configure APF to permit his IP range, but have been unsuccessful.

    Can anyone assist me with the proper command (or file to edit) to add his IP range to the allowed IP list?

    Please keep in mind, I am not a linux guru, so the use of detailed instructions would be appreciated!
  2. fi77i

    fi77i Well-Known Member

    Aug 20, 2008
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    You just need to remove the IP from the deny list. Go to the console and type.

    apf -u <client_IP>

    If you want to add the IP to the allow list (not recommended in my opinion)

    apf -a <client_IP>

    If you want to add an IP range, you just can edit the allow hosts file, I think it is /etc/apf/allow_hosts.rules
    Check the comments there I think there is one that explain how to add an IP range.

    Have a great day!
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 fi77i, Jun 28, 2011
    Last edited: Jun 28, 2011

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