

The following are created by the ufw command For example:Īnother option to dump iptables/ip6tables rules on screen is to run the following command before you remove all iptables firewall rules: You can filter out rules using the grep command/egerp command or pager like more command/ less command. Open the terminal application and then type the following command to show all IPv4 rules before we start removing all iptables rules: Replace iptables with ip6tables under Linux to flush or remove all IPv6 rules.

Iptables -Z # Flush and delete all nat and mangle # Iptables -F # Delete all Iptables Chains # # Flush All Iptables Chains/Firewall rules # # Accept all traffic first to avoid ssh lockdown via iptables firewall rules #
