<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-11-27 20:28 GMT+01:00 Saverio Proto <span dir="ltr"><<a href="mailto:zioproto@gmail.com" target="_blank">zioproto@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I have a cloud user that is trying to implement the following topology<br>
<br>
ext_net <|R1|>  internal_net  <|R2|>  dbservers_network<br>
<br>
where<br>
- internal_net: <a href="http://10.0.2.0/24" rel="noreferrer" target="_blank">10.0.2.0/24</a><br>
- dbservers_net: <a href="http://10.0.3.0/24" rel="noreferrer" target="_blank">10.0.3.0/24</a><br>
<br>
Now according to the documentation:<br>
<a href="http://docs.openstack.org/admin-guide-cloud/networking_adv-features.html" rel="noreferrer" target="_blank">http://docs.openstack.org/admin-guide-cloud/networking_adv-features.html</a><br>
<br>
My user was able to set up the necessary static routes on R1 to reach<br>
the dbservers_network and on R2 to have a default via R1<br>
<br>
However, it seems impossible to manipulate Nat rules on R1 and R2.<br>
R1 for example will SNAT traffic only for source IPs into 10.0.2.0<br>
making impossible for hosts in dbservers_network to access the<br>
Internet.<br>
<br>
To see the configuration, I can as an Operator use iptables commands<br>
into the namespaces on the network node. But what can users do ?<br>
<br>
So far, I ended up with the feeling, that is not possible to have two<br>
hop topologies where hosts two hops away from the gateway can make<br>
traffic with the outside Internet. Is this really the case ?<br>
<br></blockquote><div><br></div><div>Hi Saverio,<br><br></div><div>Recently I was facing the same situation and AFAIK cloud users can't set NAT rules on internal routers via neutron API  Those NAT rules are restricted to routers connected to an external router (setting the router gateway or doing floating IPs associations). In our case this limitation was solved using an instance as a router and maybe you can find useful the description of the followed steps:<br><br><a href="https://albertomolina.wordpress.com/2015/11/22/playing-around-with-openstack-using-an-instance-as-router/" target="_blank">https://albertomolina.wordpress.com/2015/11/22/playing-around-with-openstack-using-an-instance-as-router/</a><br><br></div><div>I hope this helps<br></div><div><br></div><div>Cheers<br><br></div><div>Alberto<br></div></div></div></div>