# You should not edit this file.  Instead, create a file with the same
# name as this one, but with a .rul extension instead of .def.  The
# .rul file will override this one.
#
# However, any changes you make to this file will be preserved.

#: Turn off forwarding for 2.1 kernels
if [ -e /proc/sys/net/ipv4/ip_forward ]; then
    if [ "$NOACT" != "yes" ]; then
        echo "0" > /proc/sys/net/ipv4/ip_forward
    fi

    if [ "$SHOWRULES" = "yes" ]; then
        echo "echo \"0\" > /proc/sys/net/ipv4/ip_forward"
    fi
fi

#: Disable automatic IP defragmentation
if [ -e /proc/sys/net/ipv4/ip_always_defrag ]; then
    if [ "$NOACT" != "yes" ]; then
        echo "0" > /proc/sys/net/ipv4/ip_always_defrag
    fi

    if [ "$SHOWRULES" = "yes" ]; then
        echo "echo \"0\" > /proc/sys/net/ipv4/ip_always_defrag"
    fi
fi

