HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

iptables-restore — Restore the `iptables` IPv4 configuration. Use `ip6tables-restore` to do the same for IPv6. More inf

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theconfigurationcommandiptables-restoreclirestoreiptablesipv4
linux

Problem

How to use the iptables-restore command: Restore the iptables IPv4 configuration. Use ip6tables-restore to do the same for IPv6. More information: <https://manned.org/iptables-restore>.

Solution

iptables-restore — Restore the iptables IPv4 configuration. Use ip6tables-restore to do the same for IPv6. More information: <https://manned.org/iptables-restore>.

Restore the iptables configuration from a file:
sudo iptables-restore {{path/to/file}}

Code Snippets

Restore the `iptables` configuration from a file

sudo iptables-restore {{path/to/file}}

Context

tldr-pages: linux/iptables-restore

Revisions (0)

No revisions yet.