commit | 5042166ab3d97faa29783dcd9d9a5db01c4776ba | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Mon Jun 27 22:09:48 2016 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Jun 28 11:17:43 2016 -0700 |
tree | cadbaec0cb1f2d4f7388c2f1645a3c49d97d8408 | |
parent | 5386c9e00d810e0971581317f5d2e68126eb6702 [diff] [blame] |
move over configurations from xos repo Change-Id: I66583bdaea582986d8f16a29066a79c6687b97fb
diff --git a/common/devstack/net-fix.sh b/common/devstack/net-fix.sh new file mode 100755 index 0000000..5b486bd --- /dev/null +++ b/common/devstack/net-fix.sh
@@ -0,0 +1,6 @@ +#!/bin/sh + +PRIMARY=$( route | grep default | awk '{print $NF}' ) +RULE="POSTROUTING -t nat -o $PRIMARY -s 172.24.4.0/24 -j MASQUERADE" + +iptables -C $RULE || iptables -A $RULE