Proposal of fix for bug 209
Change-Id: Iaa877b06b0c747e791152246fe0ca7383b4c4ff2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/nat_osm b/installers/nat_osm
index b5a4967..0ff4f61 100755
--- a/installers/nat_osm
+++ b/installers/nat_osm
@@ -147,10 +147,11 @@
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=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;