[lxc-devel] Share the loopback with network namespaces

Marian Marinov mm at yuhu.biz
Fri Apr 1 08:32:33 UTC 2011


On Friday 01 April 2011 06:12:34 Eric Brower wrote:
> Does it really need to be done on loopback?  How about creating a
> bridge on the host, adding veth devices for each namespace/container
> and the host, and adding them to the bridge-- this would allow the
> host and each container to access this private, bridged network, but
> would not provide external access unless explicitly configured.
> 
> E

I'm thinking a solution like yours and the traffic from that bridge will be then 
forwarded to the loopback device. But it is not very clean :)

I really need the access to the Loopback on the host. The problem is that I 
can not change the scripts of my users to connect to mysql on different IPs.

Marian

> 
> On Thu, Mar 31, 2011 at 6:59 PM, Marian Marinov <mm at yuhu.biz> wrote:
> > Hello,
> > I want to implement network namespaces in my software. The problem I'm
> > seeing is that each namespace has its own loopback interface.
> > Is there any way I can brindge, forward or tunnel the traffic of one
> > loopback interface (from some namespace) to the real loopback interface
> > on the host machine?
> > 
> > Any iptables patches available? Or some trics that are not documented ?
> > I want all users to have their own network namespaces with their own IPs,
> > but I want them all to share the host loopback interface for connections
> > to mysql, pgsql, smtp, imap and so on.
> > 
> > --
> > Best regards,
> > Marian Marinov
> > 
> > -------------------------------------------------------------------------
> > ----- Create and publish websites with WebMatrix
> > Use the most popular FREE web apps or write code yourself;
> > WebMatrix provides all the features you need to develop and
> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> > 
> > _______________________________________________
> > Lxc-devel mailing list
> > Lxc-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/lxc-devel

-- 
Best regards,
Marian Marinov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110401/4b4ce2ff/attachment.pgp>


More information about the lxc-devel mailing list