Last active
October 10, 2024 07:21
-
-
Save alonisser/a2c19f5362c2091ac1e7 to your computer and use it in GitHub Desktop.
Installing iptables-persistent on ubuntu without manual input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections | |
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections | |
sudo apt-get -y install iptables-persistent |
Thank you ! Very useful for bash script !
Thanks. Here's a variation.
sudo debconf-set-selections <<EOF
iptables-persistent iptables-persistent/autosave_v4 boolean true
iptables-persistent iptables-persistent/autosave_v6 boolean true
EOF
thx! ;)
thanks
Thanks. Here's a variation.
sudo debconf-set-selections <<EOF iptables-persistent iptables-persistent/autosave_v4 boolean true iptables-persistent iptables-persistent/autosave_v6 boolean true EOF
Is it works for debian 11?
Thankiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you +1