X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=d6a0286204418e14a1c426f3c04507cafa069550;hb=43fb44d51fc099720fc67ebe28af57ba988b8838;hp=48f2cae45baef1ec0e8f78b825d80d81d319b54c;hpb=31b3e72f73f41d9065fb0559343b833b4a927911;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 48f2cae4..d6a02862 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -646,6 +646,10 @@ function juju_createcontroller() { } function juju_createproxy() { + echo -e "\nChecking required packages: iptables-persistent" + dpkg -l iptables-persistent &>/dev/null || ! echo -e " Not installed.\nInstalling iptables-persistent requires root privileges" || \ + sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install iptables-persistent + if ! sudo iptables -t nat -C PREROUTING -p tcp -m tcp --dport 17070 -j DNAT --to-destination $OSM_VCA_HOST; then sudo iptables -t nat -A PREROUTING -p tcp -m tcp --dport 17070 -j DNAT --to-destination $OSM_VCA_HOST sudo netfilter-persistent save