clean iptables usage in C code