X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=7b45761a1467a9984c681c9ae9e443bf6048bb57;hb=a7e5d0103241459c2aae06c53931bebed13b4cec;hp=1e86fbd7bdd1e423e9481a3c0db7e4bba326082f;hpb=41587489eea6e2619cb2960725e9f9bcf9e557be;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 1e86fbd7..7b45761a 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