iptables-save
linux
Save the `iptables` IPv4 configuration. Use `ip6tables-save` to do the same for IPv6.
More info →Options (2)
-t, --tablebooleanPrint the `iptables` configuration of a specific table
Example:
sudo iptables-save {{[-t|--table]}} {{table}}-f, --filebooleanSave the `iptables` configuration to a file
Example:
sudo iptables-save {{[-f|--file]}} {{path/to/file}}Examples (3)
Print the `iptables` configuration
Print the `iptables` configuration of a specific table
sudo iptables-save [-t|--table] tableSave the `iptables` configuration to a file
sudo iptables-save [-f|--file] path/to/filemade by @shridhargupta | data from tldr-pages