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-14 11:23:48 +0100
commit309b2c090ed25df35457225e041e5e37976dd9f8 (patch)
tree6689fa6acbbd8d0f51ee4377a7929cefc973324c /scripts
parent67c7bc5e6c98d357340ff2d9bdec93d60d9693e7 (diff)
downloadpoky-309b2c090ed25df35457225e041e5e37976dd9f8.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: 680a94c378f20c00e8bee0575b8922bccc008fec) 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 f80538f53c..1f1b4c81bb 100755
--- a/scripts/runqemu-ifup
+++ b/scripts/runqemu-ifup
@@ -103,6 +103,7 @@ $ROUTE add -host 192.168.7.$dest $TAP
103$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32 103$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$n/32
104$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32 104$IPTABLES -A POSTROUTING -t nat -j MASQUERADE -s 192.168.7.$dest/32
105echo 1 > /proc/sys/net/ipv4/ip_forward 105echo 1 > /proc/sys/net/ipv4/ip_forward
106echo 1 > /proc/sys/net/ipv4/conf/$TAP/proxy_arp
106$IPTABLES -P FORWARD ACCEPT 107$IPTABLES -P FORWARD ACCEPT
107 108
108echo $TAP 109echo $TAP