APF installation error on VPS : unable to load iptables module (ip_tables), aborting.

While installing APF on your VPS you get the following error :

# apf -r
apf(28442): {glob} status log not found, created
apf(28463): {glob} flushing & zeroing chain policies
apf(28463): {glob} firewall offline
apf(28500): {glob} activating firewall
apf(28551): {glob} unable to load iptables module (ip_tables), aborting.
apf(28500): {glob} firewall initalized
apf(28500): {glob} !!DEVELOPMENT MODE ENABLED!! – firewall will flush every 5 minutes.

You need to configure the APF for your VPS.

nano -w /etc/apf/conf.apf



Restart APF

apf -r

Now you will be able to complete apf installation fine :)


  1. No its not working…

    apf(36568): {glob} activating firewall
    /etc/apf/internals/functions.apf: line 100: /sbin/lsmod: No such file or directory
    apf(36610): {glob} could not verify that interface venet0:0,venet0:1,venet0:2 is routed to a network, aborting.
    apf(36568): {glob} firewall initalized

    1. Seems a different issue with your VPS. lsmod should work on VPS. However ithe output is blank.

      # lsmod

      If you need assistance let me know email me at admin ( at ) linuxbabu.net. Won’t charge for it 🙂

  2. Hello,

    Yes.. in my vps the lsmod commadn shows blank outpur.
    How to know the iptables modules are enabled in my vps.

    lsmod is not working.


    Thanks and Regards

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.