added firewall update

This commit is contained in:
2018-12-15 20:02:36 -05:00
parent bd51c732f0
commit e210beb29f

View File

@@ -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
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>KMIP</short>
<description>KMIP server</description>
<port protocol="tcp" port="5696"/>
</service>
EOF
firewall-cmd --add-service=kmip --permanent
firewall-cmd --reload
systemctl daemon-reload
systemctl enable pykmip.service