I have been doing this in all previous Ubuntu editions without an issue, but something has changed in Ubuntu 20.04.
sudo apt install iptables-persistent iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT ... debconf-set-selections <<< "iptables-persistent iptables-persistent/autosave_v4 boolean true" debconf-set-selections <<< "iptables-persistent iptables-persistent/autosave_v6 boolean true" dpkg-reconfigure iptables-persistent
Two things I have noticed
- Despite the settings above, I can't install it silently. I get this screen:
And despite clicking yes the file
*filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] COMMIT
- After a reboot, everything is set to the file above. So nothing is saved.
Any advise please?