On Mon, 19 Apr 2010, Mark Longair wrote:
> I wonder if someone could help me with a frustrating problem I'm
> having with slirp-based networking in UML? (I've tried asking
> on the slirp-devel mailing list, but didn't get any response.)
> I'd be very grateful for any help.
>
> Although this has worked for me successfully in the past, I'm
> having trouble getting the "redir" option for slirp to work
> properly for connecting to a UML instance. (Network access from
> the UML machine to the outside world works fine, it's just the
> incoming connections that fail.)
I'm having the same problem on 2 machines running Ubuntu (9.04 in the past and
10.04 now), while it works fine on CentOS 5 and used to work fine on my previous
machine running Debian.
> This appears to set up the redirections correctly, since I see the
> following output (with some whitespace edited for readability):
>
> [..]
> Setting up networking....
> Configuring network interfaces...
> Slirp v1.0.17 (BETA) FULL_BOLT
> Copyright (c) 1995,1996 Danny Gasparovski and others.
> All rights reserved.
> This program is copyrighted, free software.
> Please read the file COPYRIGHT that came with the Slirp
> package for the terms and conditions of the copyright.
> Logging statistics
> Redirecting TCP port 8042 to 10.0.2.15:80
> Redirecting TCP port 2242 to 10.0.2.15:22
> IP address of Slirp host: 127.0.1.1
^^^^^^^^^
I noticed this is different: on the working CentOS setup, it shows the external
(eth0) address of the host. On the failing setups, it shows a localhost address.
You can see this even without running UML: just run slirp on the command line.
Interestingly, I tried this on an Ubuntu machine at work (9.10, I
think), and there it
did show the external IP address. So it's probably related to the
presence of some
additional package. But which one?
Then I discovered you can tell slirp which host address to use using the
`host addr a.b.c.d' option. And after that, redir works again for me!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
------------------------------------------------------------------------------
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user