All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix QEMU networking access to WAN
@ 2012-04-25  0:11 Scott Garman
  2012-04-25  0:11 ` [PATCH 1/1] runqemu-ifup: enable ip masquerading for QEMU NAT addresses Scott Garman
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Garman @ 2012-04-25  0:11 UTC (permalink / raw)
  To: openembedded-core

Hello,

This fixes the IP masquerading settings so that networked QEMU sessions
can reach external networks.
    
It is a partial fix for [YOCTO #2329].

It's been tested on my Linux Mint 12 host as well as Saul's Fedora 16
and Ubuntu 11.04 hosts.

Scott

The following changes since commit fd989e1bceef6df36619ba8944c8141abefd282e:

  self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-24 10:20:25 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib sgarman/runqemu-net-fix-oe
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/runqemu-net-fix-oe

Scott Garman (1):
  runqemu-ifup: enable ip masquerading for QEMU NAT addresses

 scripts/runqemu-ifup |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

-- 
1.7.5.4




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] runqemu-ifup: enable ip masquerading for QEMU NAT addresses
  2012-04-25  0:11 [PATCH 0/1] Fix QEMU networking access to WAN Scott Garman
@ 2012-04-25  0:11 ` Scott Garman
  2012-04-27 20:55   ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Garman @ 2012-04-25  0:11 UTC (permalink / raw)
  To: openembedded-core

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
 
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] runqemu-ifup: enable ip masquerading for QEMU NAT addresses
  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
  0 siblings, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-04-27 20:55 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Scott Garman

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!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-27 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.