Skip to content
Snippets Groups Projects
Commit 3f7f46ab authored by madavi's avatar madavi Committed by Gerrit Code Review
Browse files

Merge "Install iptables-persistent package"

parents bf573187 43fb44d5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment