[Lxc-users] Routing from lxc guest to a directly connected network to host.

Claudio Kuenzler ck at claudiokuenzler.com
Thu Jul 25 16:15:26 UTC 2013


>
> Ok, I just figured out what's going on.. The network 192.168.1.0 doesn't
> have a route to known the hosts in the network 192.168.5.0.
>
> Is it possible to NAT all the lxc network to route to the 192.168.1.0?
>

You can create iptables NAT postrouting for the internal (192.168.5.0)
addresses to use the "public" address of the physical host (192.168.1.x).
See
http://www.centos.org/docs/4/4.5/System_Administration_Guide/postrouting-ipmasquerading.html

- sorry, forgot to CC lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130725/c4dc4961/attachment.html>


More information about the lxc-users mailing list