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!

excuse me

Discussion in 'General Discussion' started by mc303, May 27, 2004.

  1. mc303

    mc303 Registered

    Apr 29, 2004
    Likes Received:
    Trophy Points:
    ok I am soooooo new to whm, i run round c/panel no problem, but whm is a new science, i am trying to instal APF firewall, i have all the instructions on how to install it, but where the hell do i start in the whm panel? here are a few of the instruction, i would be so grateful for any feedback, i am so willing to learn
    Thank you

    Follow these instructions to perform a new install of APF.

    1. Make /usr/src the current working directory.
    cd /usr/src

    2. Fetch the most curent verison of APF.

    3. Expand the APF tar.gz file.
    tar -xvzf apf-current.tar.gz

    4. Remove the tar.gz file.
    rm -f apf-current.tar.gz

    5. Locate the APF directory.
    ls -la

    Look for a directory named apf-#.#/ where #.# represents the version of APF being installed (APF version 0.8.7 would be in a directory apf-0.8.7/ and version 0.9 would be in a directory named apf-0.9).

    6. Make the APF directory the current working directory.
  2. sawbuck

    sawbuck Well-Known Member

    Jan 18, 2004
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    SSH to your server to use the command line.
  3. eazistore

    eazistore Well-Known Member

    Nov 7, 2003
    Likes Received:
    Trophy Points:


    I hope here are some tip for you.

    1. You need to get PUTTY.EXE before you can SSH to your server. Get it here

    2. Execute PUTTY.EXE with your HOST NAME and PASSWORD. Then you should be able to access to your SSH.

    3. Once you have started SSH, you follow this commands:
    cd /usr/src
    tar -xvzf apf-current.tar.gz
    rm -f apf-current.tar.gz
    ls -la
    cd apf-0.9
    sh ./
    cd /etc/apf
    pico -w conf.apf

    In order for this firewall to work properly you have to edit/add/delete ports. These ports will allow services such as mail, ftp, and ssh to come in and out of the server.
    If you have changed any ports, please modify them below and add/remove as needed.

    # Common ingress (inbound) TCP ports

    # Common ingress (inbound) UDP ports

    After you have finished editing the ports save the file and test APF.

    CTRL-x, y to save enter to confirm
    Start APF by typing.
    ./apf --start

    If APF is functioning properly and you are not locked out edit the conf.apf again
    pico -w conf.apf
    Set the DEVM parameter to 0
    Once done Exit and save the file.
    CTRL-x, y to save enter to confirm
    Restart APF
    service apf restart

    That should work.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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