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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter fcb246 in the box below so that we can be sure you are a human.