qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: James Ascroft-Leigh <jwal@declarative.co.uk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] usermode-networking problem
Date: Tue, 25 May 2004 02:55:58 +0100	[thread overview]
Message-ID: <1085450158.20610.45.camel@localhost> (raw)
In-Reply-To: <1085344105.1137.4.camel@rilke>

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

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.
> > 
> > --- 212.77.100.101 ping statistics ---
> > 3 packets transmitted, 0 received, 100% packet loss, time 2018ms
> > 
> > 
> > I don't know why. Should I configure something on host os?
> 
> Yes: On your host you have to:
> 
> 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.

From 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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-05-25  1:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-23 18:58 [Qemu-devel] usermode-networking problem Adrian Smarzewski
2004-05-23 20:28 ` Carlos Valiente
2004-05-24 20:10   ` Adrian Smarzewski
2004-06-03 10:24     ` Adrian Smarzewski
2004-05-25  1:55   ` James Ascroft-Leigh [this message]
2004-05-23 20:56 ` vaise
2004-05-23 21:05 ` Fabrice Bellard
  -- strict thread matches above, loose matches on Subject: below --
2004-05-23 18:58 Adrian Smarzewski

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=1085450158.20610.45.camel@localhost \
    --to=jwal@declarative.co.uk \
    --cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).