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

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

  1. Pvnallly

    Pvnallly Member

    Joined:
    Jun 8, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    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

    Joined:
    Aug 20, 2008
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Uruguay
    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!
     
    #2 fi77i, Jun 28, 2011
    Last edited: Jun 28, 2011
Loading...

Share This Page