<div dir="ltr"><div><div><div><div>I have a physical server that hosts an all-in-one ovirt system.<br></div>At the time there are only a handful of VMs but I plan to expand <br></div><div>(both the number of VMs and the number of physical servers).<br></div><div>As I use this for developing / testing various ideas (web apps) I sometimes<br></div><div>need to have access directly to VMs from the internet (ports like 80, 443, sometimes others).<br></div>What I would like is to install a reverse proxy (nginx) in DMZ and get rid of port forwarding system.<br><br></div>My
 question is: is there any way (ovirt, plugin, 3rd party solution) that,
 when a VM is created, automatically creates the required entries in the
 reverse proxy so that a preselected +/- customizable list of ports are 
forwarded to the new VM?<br><br></div>Example (where <a href="http://example.com" target="_blank">example.com</a> is a preconfigured domain, site3 was the hostname the user entered, 192.168.0.3 is the IP allocated by the DHCP):<br><pre><code>server {
  listen <a href="http://127.0.0.1:443" target="_blank">127.0.0.1:443</a> ssl;
  server_name <a href="http://site3.example.com" target="_blank">site3.example.com</a>;

  include common.conf;

  location / {
    proxy_pass <a href="http://192.168.0.3:80" target="_blank">http://192.168.0.3:80</a>;
  }
}<br><font size="2"><br></font></code></pre><pre><font size="2"><code><span style="font-family:arial,helvetica,sans-serif">And, as a followup: is there a way avoid manually creating an entry<br>in the zone editor on registar&#39;s website?<br><br></span></code></font></pre><pre><font size="2"><code><span style="font-family:arial,helvetica,sans-serif">Thanks,<br></span></code></font></pre><pre><font size="2"><code><span style="font-family:arial,helvetica,sans-serif">PP<br></span></code></font></pre></div>