Report issue Add example

iptables-save

Save iptables table configurations.

Description

The iptables-save command dumps the contents of IPv4 tables to STDOUT in a format that can be read by iptables-restore.

Syntax

iptables-save [options]

Options

-c : Include packet and byte counters in the output.
-t : Specify the name of the table to save.

Examples

iptables-save -t filter > iptables.bak