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.

excuse me

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

  1. mc303

    mc303 Registered

    Joined:
    Apr 29, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
    wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz

    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

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

    eazistore Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Singapore


    Hi,

    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 http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

    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
    wget http://rfxnetworks.com/downloads/apf-current.tar.gz
    tar -xvzf apf-current.tar.gz
    rm -f apf-current.tar.gz
    ls -la
    cd apf-0.9
    sh ./install.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
    IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,2096,3306,10000,35000_35999"

    # Common ingress (inbound) UDP ports
    IG_UDP_CPORTS="20,21,53,1040"

    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
    DEVM="0"
    Once done Exit and save the file.
    CTRL-x, y to save enter to confirm
    Restart APF
    service apf restart

    That should work.

    Rgds,
    Vincent
    http://www.eazistore.com
     

Share This Page