Disable and Uninstall APF Firewall Script

last updated in Categories , , , , ,

Q. How do I uninstall and disable APF Firewall script under CentOS / Red Hat Enterprise Linux without breaking anything else?

A. You can easily disable and uninstall APF firewall script under any Linux distributions. Simply type the following command as root user.

Linux Remove APF firewall

Type the following commands:

WARNING! These examples open your computer to everyone on the internet by disabling iptables firewall protection if executed.

# service iptables stop
# chkconfig apf off
# /bin/rm -rfv /etc/apf
# /bin/rm -fv /etc/cron.daily/fw
# /bin/rm -fv /etc/init.d/apf
# iptables -L -n

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.