(ve):Using apf with RAB

  • This page was last modified on November 22, 2010, at 10:47.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

It appears that apf doesn't load RAB on the (ve) Server due to the way that it checks for ipt_recent. This is easily circumvented by making a change in the following file.

/etc/apt-firewall/internal/functions.apf

Then, find the following line:

if [ "$RAB" == "1" ] && [ ! -f "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ipt_recent.$MEXT" ]; then

And change it to:

if [ "$RAB" == "1" ] && [ `grep -c "recent" /proc/net/ip_tables_matches` == "0" ]; then

This will properly check for the ipt_recent module, and allow RAB to load.