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.

Stupid Lame APF Firewall

Discussion in 'General Discussion' started by cyrex, Jun 26, 2005.

  1. cyrex

    cyrex Member

    Joined:
    Jun 19, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Iv'e read, & re-read all the info on how to install it.

    My server keeps getting locked out, it's been offline the last 10 hours.

    Still accessable via ssh.

    Can anyone please tell me how to remove this stupid thing so i can get my server back & running.

    Or the command in ssh to do a configuration rollback somehow.

    Cheers,
    -=Cy=-
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    To completely remove APF

    1) SSH to your server and run these commands:

    service apf stop
    /sbin/chkconfig --del apf
    iptables -F
    iptables --flush

    2) Remove cron jobs and entries:
    vi /etc/crontab
    rm -f /etc/cron.daily/fw
    rm -rf /etc/apf
    rm -f /etc/init.d/apf /var/log/apf*

    3) Check your config
    /sbin/chkconfig --list
    grep apf /var/log/cron
    grep bfd /var/log/cron

    4) Remove BFD be deleting its directory and conf files

    /path/to/ipaliases restart

    Hope this helps!
     
    #2 AndyReed, Jun 26, 2005
    Last edited: Jun 27, 2005
  3. rootuser

    rootuser Well-Known Member

    Joined:
    Jan 31, 2005
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ***INDIA***

    APF IS AN EXCELLENT IPTABLE FRONT END TOOL MAY BE YOU CONFIGURED IT WORNGLY,SO U ARE FACING PROBLEM's,BEFORE DOING ANY THING STUDY WELL..

    Please check this simple apf tutorial...
    http://www.webhostgear.com/index.php?art/id:61
     
  4. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Very valid point!

    I'd also recommend you get a local / abuseable test box and use that as a means of testing things out before rolling onto a server.
     

Share This Page