6dcd96a724
iptables rules should not be saved on install of iptables-persistent as rules may leak from your build environment into your vms. Use DISTRO_NAME in this element. Change-Id: I0d61c5453804ef8671ea91b2594f218958b5068f
13 lines
233 B
Bash
Executable File
13 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
install-packages iptables
|
|
|
|
|
|
if [[ "ubuntu debian" =~ "$DISTRO_NAME" ]]; then
|
|
# Note in later versions will
|
|
# need netfilter-persistent package
|
|
install-packages iptables-persistent
|
|
fi
|