Originally Posted By: LittleBlueThing
oh... I think

ipt=/sbin/iptables

should be

function ipt()
{
/sbin/iptables "$@"
}

or $ipt


Duh.. yeah!

I clipped it (incompletely) out of a larger version from my rc.firewall:
Code:
function ipt(){
        /sbin/iptables "$@"
        rc=$?
        if [ $rc != 0 ]; then
                echo "FAILED: /sbin/iptables $@"
        fi
}