Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Scott Garman <scott.a.garman@intel.com>
Subject: Re: [PATCH 1/1] runqemu-ifup: enable ip masquerading for QEMU NAT addresses
Date: Fri, 27 Apr 2012 13:55:26 -0700	[thread overview]
Message-ID: <4F9B07BE.3080703@linux.intel.com> (raw)
In-Reply-To: <49762500156a52102418293f3fe167b21e252d8a.1335312509.git.scott.a.garman@intel.com>

On 04/24/2012 05:11 PM, Scott Garman wrote:
> Fix the IP masquerading settings so that networked QEMU sessions can
> reach external networks.
>
> This is a partial fix for [YOCTO #2329].
>
> Signed-off-by: Scott Garman<scott.a.garman@intel.com>
> ---
>   scripts/runqemu-ifup |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup
> index 3bd9980..f80538f 100755
> --- a/scripts/runqemu-ifup
> +++ b/scripts/runqemu-ifup
> @@ -100,7 +100,8 @@ dest=$[ (`echo $TAP | sed 's/tap//'` * 2) + 2 ]
>   $ROUTE add -host 192.168.7.$dest $TAP
>
>   # setup NAT for tap0 interface to have internet access in QEMU
> -$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.0/24
> +$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32
> +$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32
>   echo 1>  /proc/sys/net/ipv4/ip_forward
>   $IPTABLES -P FORWARD ACCEPT
>

Merged into OE-Core

Thanks
	Sau!



      reply	other threads:[~2012-04-27 21:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25  0:11 [PATCH 0/1] Fix QEMU networking access to WAN Scott Garman
2012-04-25  0:11 ` [PATCH 1/1] runqemu-ifup: enable ip masquerading for QEMU NAT addresses Scott Garman
2012-04-27 20:55   ` Saul Wold [this message]

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=4F9B07BE.3080703@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=scott.a.garman@intel.com \
    /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