It turns out that iptables doesn\'t handle leading zeros too well. As $machinenumber that is used has to have a leading zero in it for other purposes, the idea
$machinenumber
If you are using bash, this looks like the simplest:
nozero=$(bc<<<$machinenumber)