how to remove all rules from iptables code example Example: remove all iptables rules sudo iptables -F