iptables -F

Category: Security & Hardening

iptables -F

Flush all rules from every chain

Empties all chains, leaving only the default policies in effect. If the default policy is DROP, flushing instantly cuts all traffic, including SSH, so be sure of the current policy first. The equivalent for a single chain is iptables -F INPUT.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.