Compare commits

..

1 Commits

Author SHA1 Message Date
74f3b0a11f
Integrating firewalld into node_exporter script
Signed-off-by: Georg <georg@lysergic.dev>
2021-07-25 23:02:04 +02:00

View File

@ -27,7 +27,7 @@ ExecStart=/opt/node_exporter/node_exporter --web.listen-address=":9200"
WantedBy=multi-user.target
EOF
systemctl enable --now node_exporter
if [ command -v firewall-cmd &> /dev/null ]
if [ -x $(command -v firewall-cmd) ]
then
firewall-cmd --zone=internal --add-port=9200/tcp --permanent
firewall-cmd --reload