APF Error – Unable to load iptables module (ipt_state), aborting
# cd /etc/apf/
# apf -s
Unable to load iptables module (ipt_state), aborting.
Here is the fix
# vim /etc/apf/internals/functions.apf
Replace the lines
==============
ml ipt_state 1
ml ipt_multiport 1
==============
With
==============
ml xt_state
ml xt_multiport
==============
Restart apf
# cd /etc/apf/
# apf -s
How to remove APF Firewall
# 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