From e210beb29f808f350aeef55c7fdfb0760a3710ff Mon Sep 17 00:00:00 2001 From: "Gaunt, John" Date: Sat, 15 Dec 2018 20:02:36 -0500 Subject: [PATCH] added firewall update --- pykmip_install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pykmip_install.sh b/pykmip_install.sh index 03b76da..1a9fe4c 100644 --- a/pykmip_install.sh +++ b/pykmip_install.sh @@ -50,5 +50,18 @@ StandardInput=tty-force WantedBy=multi-user.target EOF +# add firewall service file and update firewall +cat << EOF > /etc/firewalld/services/kmip.xml + + + KMIP + KMIP server + + +EOF + +firewall-cmd --add-service=kmip --permanent +firewall-cmd --reload + systemctl daemon-reload systemctl enable pykmip.service \ No newline at end of file