summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-20 12:55:49 +0100
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-03-20 12:55:49 +0100
commita62c7ca2d161e922497265c16a868178d6d606e5 (patch)
treebc9c64ceb574afc1b20465574d49cf8b2bd05c88
parenta8d4ece6e06dd34fc0d5e2708dd861a8f7c77441 (diff)
Add firewall rules before restarting haproxy
Change-Id: Idf456f13189c7e7b458f8be1a655cf0f025abb59 Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
-rwxr-xr-xtools/kingbird/install_kingbird.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/kingbird/install_kingbird.sh b/tools/kingbird/install_kingbird.sh
index 7480e59..17bf41f 100755
--- a/tools/kingbird/install_kingbird.sh
+++ b/tools/kingbird/install_kingbird.sh
@@ -171,6 +171,9 @@ iniset ${KINGBIRD_CONF_FILE} database connection "mysql://$mysql_user:$mysql_pas
iniset ${KINGBIRD_CONF_FILE} database max_overflow -1
iniset ${KINGBIRD_CONF_FILE} database max_pool_size 1000
+# Configure iptables
+iptables -I INPUT -p tcp -m multiport --dports 8118 -m comment --comment "410 kingbird" -j ACCEPT
+
# Configure haproxy
cat > /etc/haproxy/conf.d/180-kingbird-api.cfg <<EOF
@@ -190,9 +193,6 @@ EOF
service haproxy restart
-# Configure iptables
-iptables -I INPUT -p tcp -m multiport --dports 8118 -m comment --comment "410 kingbird" -j ACCEPT
-
# Run kingbird
mkdir -p /var/log/kingbird