summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-09-25 02:51:50 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-09-25 02:51:50 -0700
commit125e69dd42f6f91f727258dc388d15ce63076d1f (patch)
tree4d8102a6a29a558373a2ebf0710e88a89efeb6b5
parentc3fcb1b2176f4b7afbffb3555da55c0754bacaad (diff)
allow mgmt ip access to api
-rwxr-xr-xtools/setup_iptables.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/setup_iptables.sh b/tools/setup_iptables.sh
index d045b50cd..b7e2f9a11 100755
--- a/tools/setup_iptables.sh
+++ b/tools/setup_iptables.sh
@@ -106,6 +106,9 @@ fi
if [ "$CMD" == "api" ] || [ "$CMD" == "all" ]; then
iptables -A nova_input -m tcp -p tcp -d $IP --dport 8773 -j ACCEPT
+ if [ "$IP" != "$MGMT_IP" ]; then
+ iptables -A nova_input -m tcp -p tcp -d $MGMT_IP --dport 8773 -j ACCEPT
+ fi
fi
if [ "$CMD" == "redis" ] || [ "$CMD" == "all" ]; then