iptables-save
Save the iptables IPv4 configuration. Use ip6tables-save to to the same for IPv6. More information: <https://manned.org/iptables-save>.
Install
- All systems
-
curl cmd.cat/iptables-save.sh
- Debian
-
apt-get install iptables
- Ubuntu
-
apt-get install iptables
- Alpine
-
apk add iptables
- Arch Linux
-
pacman -S iptables
- 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
- Dockerfile
- dockerfile.run/iptables-save
- Docker
-
docker run cmd.cat/iptables-save iptables-save
powered by Commando
Save the iptables IPv4 configuration. Use ip6tables-save to to the same for IPv6. More information: <https://manned.org/iptables-save>.
-
Print the `iptables` configuration:
sudo iptables-save
-
Print the `iptables` configuration of a specific [t]able:
sudo iptables-save --table table
-
Save the `iptables` configuration to a [f]ile:
sudo iptables-save --file path/to/file
© tl;dr; authors and contributors