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 fully uninstall APF firewall?

Discussion in 'General Discussion' started by Kent Brockman, Jun 30, 2008.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi there people, I'm using actually CSF and is working very fine.
    I thought I completely uninstalled APF, but something seems to be still alive.
    Based on what I've found on the web, this is the script I'm using to uninstall APF:

    Code:
    /etc/init.d/apf stop
    rm /etc/cron.daily/apf* -drf
    rm /etc/logrotate.d/apf* -drf
    rm /etc/apf* -drf
    rm /usr/local/sbin/apf* -drf
    rm /etc/rc.d/init.d/apf* -drf
    rm /var/log/apf* -drf
    /sbin/chkconfig --level 345 apf off
    This code stops and uninstall APF, but I recently found this at the cron log:

    Code:
    Jun 30 17:50:01 servidor crond[7496]: (root) CMD (/etc/init.d/apf stop >> /dev/null 2>&1)
    I don't realize what's missed and how/where to delete the entry that is trying to run that line every 5 minutes.
    Anybody having some clues?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    crontab is where you'd remove that I believe.


    list with:

    crontab -l

    or edit with:

    crontab -e

    file is located:

    /etc/crontab

    (might want to back it up first to be safe)
     
  3. rone

    rone Well-Known Member

    Joined:
    Jan 14, 2007
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    rm -rf /etc/apf
    rm -f /etc/cron.daily/fw /etc/init.d/apf /usr/local/sbin/apf
     
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yep, I found that entry in /etc/crontab. All ok now. Thanks! :D
     
Loading...

Share This Page