iptables-restore

Restore the configuration of the iptables table

Supplementary instructions

iptables-restore command is used to restore the iptables configuration backed up by the iptables-save command.

grammar

iptables-restore (options)

Options

-c: Specifies to restore the current packet counter and byte counter values when restoring the iptables table;
-t: Specifies the name of the table to be restored.

Example

iptables-restore < iptables.bak

iptables.bak is the file backed up by the iptables-save command.