Server Administration > Linux Server Tips > APF Firewall > Unable to load iptables module
Unable to load iptables module (ipt_state), aborting.
I have recently upgraded kernel of my linux server to 2.6.17.6. After this, APF Firewall stoped working. It give error message on starting firewall.
[root@server10 apf]# apf -s
Unable to load iptables module (ipt_state), aborting.
[root@server10 apf]#
The problem is due to module ipt_state is no longer exists, the name is changed to xt_state.
On my server, the module is available at "/lib/modules/2.6.17.6/kernel/net/netfilter"
The error can be fixed by editing /etc/apf/internals/functions.apf
# vi /etc/apf/internals/functions.apf
FIND
ml ipt_state 1
ml ipt_multiport 1
REPLACE WITH
ml xt_state
ml xt_multiport
Now start apf with apf -s, firewall will work.
|