vm-common.sh: enable ip forwarding just in case
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Wed, 20 Jun 2012 00:52:40 +0000 (17:52 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Wed, 20 Jun 2012 00:52:40 +0000 (17:52 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

vm-common.sh

index d702b80..2c57b05 100644 (file)
@@ -4,6 +4,7 @@ die() {
 }
 
 run_vm() {
+    sysctl -w net.ipv4.ip_forward=1 || die "failed to enable ip_forward"
     ID=$1
     shift
     NARGS=$@