Corrected a syntax error and added iptables logging