Hello Devs,<div><br></div><div>I am currently using a debian wheezy dedicated host for some Virtualbox VMs and I've configured the network in a certain way, and I was wondering if you intended to work it this way, and if not, what would you advise for it.</div>
<div><br></div><div>All network are in 10.60.x.x/24</div><div>Every vboxnet is a Host-Only NIC</div><div><br></div><div><br></div><div> 0.1 0.2 0.3</div><div>
| | |</div><div> +--- vboxnet0---+----------------+-----------------+</div><div> | 0.254</div><div> |</div>
<div>Host ----------+-- vboxnet1 ---+-----------------+-----------------+</div><div> | 1.254 | | |</div><div> | 1.1 1.2 1.3</div>
<div> |</div><div> |</div><div> | 2.1 2.2</div><div> | | |</div><div> +-- vboxnet2 ---+------------------+</div>
<div> 2.254</div><div><br></div><div>So my current setup is that I created 3 Host-only interfaces on which I attach all the VMs belonging to the same subnet. This make the Hostonly interface act as a switch/single broadcast domain.</div>
<div>I also have setup my host as the router in-between each Host-only, using iptables to block/allow whatever I want.</div><div>My goal was to avoid an extra VM acting as a firewall/router for each network, having these network as Internal and that VM firewall linked to a single host-only interface.</div>
<div><br></div><div>Currently, this work great, and I am quite happy with the setup - easy to manage, configure, no perf issues.</div><div>But my question is this one : was it the intended use? will it cause problems if I add more VMs performance wise? Can I have side effects I didn't notice so far?</div>
<div>Or is the best practice when it comes to Virtualbox is to use Internal + routing VM + 1 host-only NIC?</div><div><br></div><div>Thank you for your insight on this.</div><div><br></div><div>Best regards,</div><div>Max</div>