iptables-restore

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

Install

All systems
curl cmd.cat/iptables-restore.sh
Debian Debian
apt-get install iptables
Ubuntu
apt-get install iptables
Alpine
apk add iptables
Arch Arch Linux
pacman -S iptables
image/svg+xml Kali Linux
apt-get install iptables
CentOS
yum install iptables
Fedora
dnf install iptables
Windows (WSL2)
sudo apt-get update sudo apt-get install iptables
Raspbian
apt-get install iptables
Docker
docker run cmd.cat/iptables-restore iptables-restore powered by Commando

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

© tl;dr; authors and contributors