From bd8f9f3db2f85b3ccd5f15221179e3fc643ee365 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 8 Mar 2017 15:40:40 +0100 Subject: [PATCH] Proposal of fix for bug 209 Change-Id: Iaa877b06b0c747e791152246fe0ca7383b4c4ff2 Signed-off-by: garciadeblas --- installers/nat_osm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.25.1