UnixServerAdmin

Server Administration & Management

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

Advertisements

October 14, 2012 Posted by | Firewall | , | Leave a comment

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

April 8, 2011 Posted by | CSF, Firewall | , , , | 2 Comments