iptables-save

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

Debian Debian
RUN apt-get update && \ apt-get install -y iptables
Ubuntu
RUN apt-get update && \ apt-get install -y iptables
Alpine
RUN apk add iptables
Arch Arch Linux
RUN pacman -S --noconfirm iptables
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y iptables
CentOS
RUN yum install -y iptables
Fedora
RUN dnf install -y iptables
Raspbian
RUN apt-get update && \ apt-get install -y iptables
click the source code to copy install iptables-save on any operating system with command-not-found.com