From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BBLLt-0003j8-E1 for qemu-devel@nongnu.org; Wed, 07 Apr 2004 18:16:57 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BBLLN-0003cA-Lz for qemu-devel@nongnu.org; Wed, 07 Apr 2004 18:16:56 -0400 Received: from [204.183.119.77] (helo=dash.soliddesign.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BBLLM-0003bj-Rq for qemu-devel@nongnu.org; Wed, 07 Apr 2004 18:16:24 -0400 Received: from 6-allhosts (unknown [10.2.3.220]) by dash.soliddesign.net (Postfix) with ESMTP id 8EF7157552 for ; Wed, 7 Apr 2004 17:16:23 -0500 (EST) Subject: Re: [Qemu-devel] Win32 usermode only network possible? [was: multiple VMs] From: Joe Batt In-Reply-To: <1081375468.14275.33.camel@aragorn> References: <000701c41cbf$49b386d0$0401a8c0@putte2k> <4074604D.6030201@bellard.org> <1081375468.14275.33.camel@aragorn> Content-Type: text/plain Message-Id: <1081376183.12574.53.camel@localhost> Mime-Version: 1.0 Date: Wed, 07 Apr 2004 17:16:23 -0500 Content-Transfer-Encoding: 7bit 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 When NATing, you don't have to match the original source port, so we should be able to have a NAT run in a non root mode (if source port < 1024, use a different source port). Before I spent so much time looking for it today, I would have expected that there was a userspace NAT program available (something that spoke the TUN stream format perhaps), but I didn't see anything. (TUN stream format would have been cool, because it QEMU already speaks that, but it would have been slower.) I would expect the TCP packet to TCP socket mapping to be the hard part. UDP should be easy. Wont we also need a customized DHCP server to server up IP addresses and DNS servers? I would think that the goal is that you can 'qemu -hda somepartition' or 'qemu -cdrom someiso' and have a running NATed machine without any host configuration. Joe On Wed, 2004-04-07 at 17:04, John R. Hogerhuis wrote: > On Wed, 2004-04-07 at 13:10, Fabrice Bellard wrote: > > I like very much the idea of enabling network use without any priviledge > > rights for Linux and win32. I have looked at the SLiRP code and it seems > > easy to do (at least for Linux, for win32 I have not looked how to do > > that with the SDL event loop). > > > > Expect this feature to come in the next few days :-) > > > > Cool! The win32 side shouldn't be that difficult since sockets under > win32 isn't all that different. > > Anyway the way you decribe it the strategy should work under Win32 as > long as you don't use raw sockets since those are priviledged. > > > A SOCKS proxy would allow two way communication since it allows creation > of listening sockets. But it requires configuration of the clients so > it's not zero-install. Its other advantage is that it would not require > priviledged access to the host. Most important networks apps are > socksified and the setup is very easy (tell the app to use a certain > socks server IP). > > > -- John. > > ______________________________________________________________________ > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://mail.nongnu.org/mailman/listinfo/qemu-devel