Skip to content

Instantly share code, notes, and snippets.

@alonisser
Last active April 17, 2024 10:59
Show Gist options
  • Save alonisser/a2c19f5362c2091ac1e7 to your computer and use it in GitHub Desktop.
Save alonisser/a2c19f5362c2091ac1e7 to your computer and use it in GitHub Desktop.
Installing iptables-persistent on ubuntu without manual input
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
Copy link

ghost commented Sep 20, 2018

Thank you +1

@m-adrien
Copy link

Thank you ! Very useful for bash script !

@slmg
Copy link

slmg commented Jan 11, 2021

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

@gluehbirnenkopf
Copy link

thx! ;)

@pogossian
Copy link

thanks

@malikshi
Copy link

@slmg

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment