<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 20, 2015 at 5:04 AM, Robert Koretsky <span dir="ltr"><<a href="mailto:bobk48@gmail.com" target="_blank">bobk48@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Guido et al:<br>
Another suggestion I got from the Ubuntu Forums on virtualisation gave me a single line that could be added to the iptables configuration( and also some other alternate ways of using and configuring ufw) to achieve a "port forwarding" of a port of interest, like 22, to the container IP 10.0.3.1 from my host IP 192.168.0.6. I am going to try this one-line iptables method, see if it works. More importantly, once my container can be ssh'ed to from my home network, will my host still be reachable. Other than that, I'm not sure what else to do. </p></blockquote><div><br></div><div>How about reading replies of your mail in the other thread you created?</div><div><br></div><div>I'm going to assume it's because somehow you didn't get the replies in your inbox, so I CC your mail as well here.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Believe me, other suggested solutions were either 100-line long bash scripts plus dozens of changes and package downloads, or were completely off base.<br>
</p></blockquote><div><br></div><div>You obviously haven't read Ubuntu's lxc documentation. Nor Ubuntu's network bridge documentation (<a href="https://help.ubuntu.com/lts/serverguide/network-configuration.html#bridging" target="_blank">https://help.ubuntu.com/lts/serverguide/network-configuration.html#bridging</a>), which is also linked on lxc documentation page.</div><div><br></div><div>It's NOT 100-line long script. And the required bridge packages is already installed when you install lxc.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Again, can anyone tell me why lxcbr0 is configured to start with an IP of 10.0.3.1?</p></blockquote><div><br></div><div>The same reason why virtualbox uses NAT networking for VMs by default.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr"> My Ubuntu 15.10 Desktop machine, which has a container, gets its IP via DHCP from a router.<br>
</p></blockquote><div><br></div><div>Assuming you've read the docs, bridging should work.</div><div><br></div><div>The exception is if your desktop connects to LAN via wifi, in which case bridging will NOT work.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>