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 👍
Thank you !
@5ilv4n0: yes, correct. To any wayward web search folks, here's an updated version:
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
sudo apt-get -y install iptables-persistent
You can verify these fields by installing debconf-utils
and searching for iptables values:
sudo apt install debconf-utils
sudo debconf-get-selections | grep iptables
Thank you +1
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
both lines are v4! i think one have to be v6? :)