APF is highly powered firewall which helps you in defining Iptable rules on your server. If you are sure to remove the APF from your system, below are the steps:
Remove APF
# /etc/init.d/apf stop
# chkconfig apf off
# rm -rf /etc/apf
# rm -f /etc/rc.d/init.d/apf
# rm -f /etc/logrotate.d/apf
# rm -f /etc/cron.daily/apf
# rm -f /etc/cron.d/refresh.apf
# rm -f /usr/local/sbin/apf
# rm -f /var/log/apf_log*
If there are “echo /etc/apf/apf -s >> /dev/null 2>&1” in the /etc/rc.local file, delete it.
Remove BFD
# rm -rf /usr/local/bfd
# rm -f /usr/local/sbin/bfd
# rm -f /etc/cron.d/bfd
# rm -f /etc/cron.daily/bfd
# rm -f /etc/logrotate.d/bfd
# rm -f /var/log/bfd_log*
The above steps will remove both APF and BFD from your system, you can verify the same with which command.
The output will be “No APF Found”.