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 1BSMlR-00036I-Lf for qemu-devel@nongnu.org; Mon, 24 May 2004 17:13:41 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSM1d-0002IW-BK for qemu-devel@nongnu.org; Mon, 24 May 2004 16:26:53 -0400 Received: from [80.51.58.140] (helo=chilan.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BSLl9-0007rn-Qp for qemu-devel@nongnu.org; Mon, 24 May 2004 16:09:20 -0400 Message-ID: <40B256B6.7010000@kadu.net> Date: Mon, 24 May 2004 22:10:30 +0200 From: Adrian Smarzewski MIME-Version: 1.0 Subject: Re: [Qemu-devel] usermode-networking problem References: <40B0F46C.2000308@kadu.net> <1085344105.1137.4.camel@rilke> In-Reply-To: <1085344105.1137.4.camel@rilke> Content-Type: text/plain; charset=us-ascii; format=flowed 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 Carlos Valiente wrote: > Yes: On your host you have to: > > 1. Enable IP forwarding: > > # echo 1 > /proc/sys/net/ipv4/ip_forward > > 2. Enable masquerading > > # iptables -t nat -A POSTROUTING \ > -s 10.0.0.0/8 \ > -d ! 10.0.0.0/8 -j MASQUERADE doesn't work for me :( root@thunder root # cat /proc/sys/net/ipv4/ip_forward 1 root@thunder root # ifconfig <...> eth1 Link encap:Ethernet HWaddr 00:02:44:3C:06:53 inet addr:112.2.2.17 Bcast:112.2.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18610 errors:0 dropped:0 overruns:0 frame:0 TX packets:13040 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10535515 (10.0 Mb) TX bytes:1478199 (1.4 Mb) Interrupt:11 Base address:0xee00 <...> root@thunder root # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 112.2.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 <...> 0.0.0.0 112.2.2.11 0.0.0.0 UG 0 0 0 eth1 dhcp on 10.0.2.2 and dns on 10.0.2.3 are working. -- Pozdrowienia Adrian Smarzewski