From 76424ae12f826fec288e6ee1dab1b2845e6adabe Mon Sep 17 00:00:00 2001 From: Dimitri Mazmanov Date: Mon, 20 Mar 2017 12:55:49 +0100 Subject: Add firewall rules before restarting haproxy Change-Id: Idf456f13189c7e7b458f8be1a655cf0f025abb59 Signed-off-by: Dimitri Mazmanov (cherry picked from commit a62c7ca2d161e922497265c16a868178d6d606e5) --- tools/kingbird/install_kingbird.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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 <