From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSRBB-0004xD-Gm for qemu-devel@nongnu.org; Mon, 24 May 2004 21:56:33 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSRAf-0004ou-7J for qemu-devel@nongnu.org; Mon, 24 May 2004 21:56:32 -0400 Received: from [62.241.160.9] (helo=shockwave.systems.pipex.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSRAe-0004oY-Nz for qemu-devel@nongnu.org; Mon, 24 May 2004 21:56:00 -0400 Received: from dm.chilbolton.house (81-86-222-87.dsl.pipex.com [81.86.222.87]) by shockwave.systems.pipex.net (Postfix) with ESMTP id 1A64A1C0016D for ; Tue, 25 May 2004 02:55:58 +0100 (BST) Subject: Re: [Qemu-devel] usermode-networking problem From: James Ascroft-Leigh In-Reply-To: <1085344105.1137.4.camel@rilke> References: <40B0F46C.2000308@kadu.net> <1085344105.1137.4.camel@rilke> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-22+MF0chjwl/KogpbWjb" Message-Id: <1085450158.20610.45.camel@localhost> Mime-Version: 1.0 Date: Tue, 25 May 2004 02:55:58 +0100 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-22+MF0chjwl/KogpbWjb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2004-05-23 at 21:28 +0100, Carlos Valiente wrote: > On Sun, 2004-05-23 at 19:58, Adrian Smarzewski wrote: > > sh-2.05b# ping -c 3 212.77.100.101 > > PING 212.77.100.101 (212.77.100.101) 56(84) bytes of data. > >=20 > > --- 212.77.100.101 ping statistics --- > > 3 packets transmitted, 0 received, 100% packet loss, time 2018ms > >=20 > >=20 > > I don't know why. Should I configure something on host os? >=20 > Yes: On your host you have to: >=20 > 1. Enable IP forwarding: [...] > 2. Enable masquerading [...] Not sure but I thought that the purpose of the the -user-net feature was to remove the need for any superuser privileges or special host configuration. =46rom what I understand user-mode networking is quite a feat to pull off, with ICMP (e.g. ping(8)) being probably harder than TCP or UDP due to the interfaces made available by the system to non-superusers. I have not looked at the code but the suggestion has been made that it may even be necessary to fork and exec the (setuid) /usr/ping executable. I would suspect that, as previously mentioned, UDP is working but the connection tracking of the TCP implementation is broken/incomplete in some way. --=-22+MF0chjwl/KogpbWjb Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAsqeubbuRtoV0Rt0RAhfXAJ9eQZAeU2KnNAIv5tNLQ05FrutsDgCfUPoq RHfWzNqOajZ+TU1BPB2DcAc= =w7Ru -----END PGP SIGNATURE----- --=-22+MF0chjwl/KogpbWjb--