From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Elwin Stelzer Eliazer <stelzere-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: container-to-host virtual or loopback kind of interface support
Date: Thu, 9 Apr 2009 14:14:02 -0500 [thread overview]
Message-ID: <20090409191402.GA561@us.ibm.com> (raw)
In-Reply-To: <D02204CF-796A-45F5-B9A2-5B581EB52A2F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Quoting Elwin Stelzer Eliazer (stelzere-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org):
>
> On Apr 9, 2009, at 6:57 AM, "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> wrote:
>
>> Quoting Elwin Stelzer Eliazer (stelzere-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org):
>>> Hi,
>>>
>>> I am trying to use network namespace for virtualizing some socket
>>> applications i already have.
>>> These applications interact with Apache through 'lo' 127.0.0.1:nnn
>>> sockets
>>> now.
>>> When i virtualize, i do not want to run Apache inside the container,
>>> and has
>>> to be outside.
>>> I can not use any non-127.x.x.x IP address for this purpose, or have
>>> any
>>> separate "host-only" kind of internal network.
>>> I would appreciate if someone can let me know the options i have to
>>> accomplish this, with network namespace, and 2.6.29 or 2.6.30.
>>
>> So to be clear, what you want is to have an application in a separate
>> network namespace from apache, but talking over a shared loopback?
>>
>
> Yes. But I am not very specific about the loopback.
>
>> Can you use a veth tunnel pair? You don't have to tie them to a
>> bridge so the socket app won't be on the public net.
>>
>> -serge
>
> Yes I can do without the bridge. But what IP address for the veth? Can
> it be a 127.x.x.x? My solution cannot have a regular public or private
> ip that can interfere with external network. The reason I mentioned
> bridge was it will reduce the ip subnet needed to one. If you can
> suggest a solution that leverages 127.x.x.x it will be useful.
Actually is there any reason you can't use a unix socket?
-serge
next prev parent reply other threads:[~2009-04-09 19:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 22:49 container-to-host virtual or loopback kind of interface support Elwin Stelzer Eliazer
[not found] ` <638f07d70904081549h442c4bb0l401fa08f4980b217-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-09 13:57 ` Serge E. Hallyn
[not found] ` <20090409135724.GA26467-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-04-09 16:00 ` Elwin Stelzer Eliazer
[not found] ` <D02204CF-796A-45F5-B9A2-5B581EB52A2F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-04-09 19:14 ` Serge E. Hallyn [this message]
[not found] ` <20090409191402.GA561-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-04-09 23:28 ` Elwin Stelzer Eliazer
[not found] ` <638f07d70904091628o25d11b95oa8614a0585df4cf5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-25 7:27 ` Eric W. Biederman
[not found] ` <m1iqktw5uq.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-04-25 14:38 ` Elwin Stelzer Eliazer
[not found] ` <638f07d70904250738j987ed6j685372651346634a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-25 18:51 ` Eric W. Biederman
[not found] ` <m1k558va5u.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-04-26 8:08 ` Elwin Stelzer Eliazer
[not found] ` <638f07d70904260108s3ca2eb5cpcbed37d5ba002d42-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-26 21:37 ` Eric W. Biederman
[not found] ` <m1fxfvp04e.fsf-+imSwln9KH6u2/kzUuoCbdi2O/JbrIOy@public.gmane.org>
2009-04-27 22:00 ` Elwin Stelzer Eliazer
[not found] ` <638f07d70904271500u1f0a13cbif1c5db64bdb520ab-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-28 4:19 ` Eric W. Biederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090409191402.GA561@us.ibm.com \
--to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=stelzere-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.