Fix all invalid IPs in the iptables nat file

Modify fixaddr to check every entry in the nat rules file instead of
just looking at the last entry.