[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Gear link from container localhost to host localhost address




----- Original Message -----
> On 30 June 2014 17:29, Clayton Coleman <ccoleman redhat com> wrote:
> <snip>
> >> Jun 30 16:35:54 localhost.localdomain gear[10239]: Using 10.0.2.15/24
> >> for 127.0.0.1
> >
> > This means we correctly translated localhost to 10.0.2.15 for the mapping
> 
> Oh! I I'd hadn't read the output thoroughly. It's forwarding the
> traffic to the non-loopback IP on the host; not 127.0.0.1
> 
> And my receiving test socket was listening explicitly on 127.0.0.1.
> 
> So I just need to change that to listen on all interfaces and my test
> now passes.
> 
> Would it be possible to route the connection to the host's loopback
> address? I guess it would involve tunnels or something.

It would probably be a new type of link - host loopback as the ToHost vs. host public.  We'd have to change the iptables rules, and I actually don't know for sure whether you can route to 127.0.0.1 from inside the namespace. cc'ing Mrunal.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]