Monday, July 4, 2016

APF over Ubuntu 14.04



Ubuntu 14.04 with new kernel (Linux cloud 4.2.0-27-generic) is not supported by APF, so we have to hardcode (/etc/apf/internals/functions.apf) again as follow:


if [ "$KREL" == "2.4" ]; then
        MEXT="o"
elif [ "$KREL" == "2.6" ]; then
        MEXT="ko"
elif [[ "$KREL" =~ "3." ]]; then
        MEXT="ko"
elif [[ "$KREL" =~ "4." ]]; then
        MEXT="ko"
elif [ ! "$KREL" == "2.4" ] && [ ! "$KREL" == "2.6" ] && [[ ! "$KREL" =~ "3." ]]; then
        if [ ! "$SET_VERBOSE" == "1" ]; then
                echo "kernel version not compatible or netfilter support missing, aborting."
        fi
        eout "{glob} kernel version not compatible or netfilter support missing, aborting."
        exit 1
else
        if [ ! "$SET_VERBOSE" == "1" ]; then
                echo "kernel version not compatible or netfilter support missing, aborting."
        fi
        eout "{glob} kernel version not compatible or netfilter support missing, aborting."
        exit 1
fi


No comments:

Post a Comment