iptables - flush rules (-F or --flush)

by
Jeremy Canfield |
Updated: September 18 2020
| iptables articles
Some iptables install with some rules already in place. The -F or --flush option can be used to flush all of the rules.
iptables --flush
Once flushed, iptables should contain no rules. The iptables command with the -L or --list option can be used to display the rules. In this example, there are no rules.
iptables -L
. . .
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain ACCEPT (policy ACCEPT)
target prot opt source destination
Did you find this article helpful?
If so, consider buying me a coffee over at