summarylogtreecommitdiffstats
path: root/iptables-exporter.service
diff options
context:
space:
mode:
authorDave Ingram2020-05-28 14:31:01 +0100
committerDave Ingram2020-05-28 14:31:01 +0100
commitd2d2bdf17d4ca7319a6a13528351f33980718497 (patch)
tree374971c86164a1c616df16046aa133ba0b07f9bf /iptables-exporter.service
downloadaur-iptables-exporter-bin.tar.gz
Initial checkin of package
Diffstat (limited to 'iptables-exporter.service')
-rw-r--r--iptables-exporter.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/iptables-exporter.service b/iptables-exporter.service
new file mode 100644
index 00000000000..f85f28ee7ee
--- /dev/null
+++ b/iptables-exporter.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=iptables exporter for Prometheus
+After=network.target
+
+[Service]
+User=nobody
+Group=nobody
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=strict
+CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW
+AmbientCapabilities=CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW
+Restart=on-failure
+ExecStart=/usr/bin/iptables_exporter
+
+[Install]
+WantedBy=multi-user.target