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;
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;