summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-06-07 16:36:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-08 11:43:20 +0100
commit64791642d4c12a2759a877101470f28c3d557f92 (patch)
tree54e08ca0bbd5aefa5f0999d5fb07f1938caef283 /scripts
parent1a749e1b89ddfdbf6f58ea842272892a59b7c262 (diff)
downloadpoky-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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-ifup1
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
111echo 1 > /proc/sys/net/ipv4/ip_forward 111echo 1 > /proc/sys/net/ipv4/ip_forward
112echo 1 > /proc/sys/net/ipv4/conf/$TAP/proxy_arp
112$IPTABLES -P FORWARD ACCEPT 113$IPTABLES -P FORWARD ACCEPT
113 114
114echo $TAP 115echo $TAP