Add version var in iptables and some minor fixes