X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fnat_osm;fp=installers%2Fnat_osm;h=0ff4f61512f91184fe4ae1d147c131a45d99b7d9;hb=bd8f9f3db2f85b3ccd5f15221179e3fc643ee365;hp=b5a496728f97ef96930e8341fcbe682008c43dcf;hpb=fc43c9d138cd2fd23e8f578182e67b43246895e5;p=osm%2Fdevops.git 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;