diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-06-07 16:36:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-08 11:43:20 +0100 |
commit | 64791642d4c12a2759a877101470f28c3d557f92 (patch) | |
tree | 54e08ca0bbd5aefa5f0999d5fb07f1938caef283 | |
parent | 1a749e1b89ddfdbf6f58ea842272892a59b7c262 (diff) | |
download | poky-64791642d4c12a2759a877101470f28c3d557f92.tar.gz |
runqemu-ifup: enable arp proxying
This allows core-image-sato to access the WAN.
Thanks to Dexuan Cui for proposing this fix.
Fixes [YOCTO #2329]
(From OE-Core rev: d294b1bddece429f2639676ddc97d2896fc58916)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/runqemu-ifup | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index e4c3dafeef..0926faf439 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup | |||
@@ -109,6 +109,7 @@ $ROUTE add -host 192.168.7.$dest $TAP | |||
109 | $IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32 | 109 | $IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32 |
110 | $IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32 | 110 | $IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32 |
111 | echo 1 > /proc/sys/net/ipv4/ip_forward | 111 | echo 1 > /proc/sys/net/ipv4/ip_forward |
112 | echo 1 > /proc/sys/net/ipv4/conf/$TAP/proxy_arp | ||
112 | $IPTABLES -P FORWARD ACCEPT | 113 | $IPTABLES -P FORWARD ACCEPT |
113 | 114 | ||
114 | echo $TAP | 115 | echo $TAP |