From: garciadeblas Date: Wed, 8 Mar 2017 14:40:40 +0000 (+0100) Subject: Proposal of fix for bug 209 X-Git-Tag: v1.1.0^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=bd8f9f3db2f85b3ccd5f15221179e3fc643ee365;p=osm%2Fdevops.git Proposal of fix for bug 209 Change-Id: Iaa877b06b0c747e791152246fe0ca7383b4c4ff2 Signed-off-by: garciadeblas --- diff --git a/installers/nat_osm b/installers/nat_osm index b5a49672..0ff4f615 100755 --- a/installers/nat_osm +++ b/installers/nat_osm @@ -147,10 +147,11 @@ innatpost==1 && /\#Autogenerated by nat_osm/ { next; } osmpost==1 && /#End autogeneration by nat_osm/ { - #print "#Autogenerated by nat_osm" + print "#Autogenerated by nat_osm" + print "-A POSTROUTING -s "rift_ip"/24 -d "rift_ip" -p tcp --dport 8443 -j MASQUERADE" #print "-A POSTROUTING -s "rift_ip" -p tcp -m tcp --dport 9090 -d "openmano_ip" -j SNAT --to "UI_IP #print "-A POSTROUTING -s "rift_ip" -p tcp -m tcp --dport 17070 -d "juju_ip" -j SNAT --to "UI_IP - #print "#End autogeneration by nat_osm" + print "#End autogeneration by nat_osm" osmpost=0; donepost=1; next; @@ -160,10 +161,11 @@ innatpost==1 && /COMMIT/ { innatpost=0; innat=0; if (donepost==0) { - #print "#Autogenerated by nat_osm" + print "#Autogenerated by nat_osm" + print "-A POSTROUTING -s "rift_ip"/24 -d "rift_ip" -p tcp --dport 8443 -j MASQUERADE" #print "-A POSTROUTING -s "rift_ip" -p tcp -m tcp --dport 9090 -d "openmano_ip" -j SNAT --to "UI_IP #print "-A POSTROUTING -s "rift_ip" -p tcp -m tcp --dport 17070 -d "juju_ip" -j SNAT --to "UI_IP - #print "#End autogeneration by nat_osm" + print "#End autogeneration by nat_osm" donepost=1; } print;