qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Smarzewski <adrian@kadu.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] usermode-networking problem
Date: Mon, 24 May 2004 22:10:30 +0200	[thread overview]
Message-ID: <40B256B6.7010000@kadu.net> (raw)
In-Reply-To: <1085344105.1137.4.camel@rilke>

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

  reply	other threads:[~2004-05-24 21:13 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 [this message]
2004-06-03 10:24     ` Adrian Smarzewski
2004-05-25  1:55   ` James Ascroft-Leigh
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=40B256B6.7010000@kadu.net \
    --to=adrian@kadu.net \
    --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).