diff options
author | Chaoyi Huang <joehuang@huawei.com> | 2017-03-21 00:03:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-21 00:03:37 +0000 |
commit | ecdc22761e7f0ecc901e704aae522eaa54e969b4 (patch) | |
tree | be34a83dd4e81c70c8733814be33906ea77e6d1d /tools | |
parent | 954f64ec9ad0c929392865d502019692d3b265db (diff) | |
parent | a62c7ca2d161e922497265c16a868178d6d606e5 (diff) |
Merge "Add firewall rules before restarting haproxy"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/kingbird/install_kingbird.sh | 6 |
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 |