C programming example - iptables management, bash interaction, reading and writing files, user input