summarylogtreecommitdiffstats
path: root/filtron.service
blob: 9f2a845877410fd1f052b59378b02f25b592777b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Filtron instance
After=network.target

[Service]
Type=simple
User=nobody
PrivateTmp=true
PrivateDevices=true
# Prevent access to /home, /root, and /run/user
ProtectHome=true
# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full
ExecStart=/usr/bin/filtron -listen 127.0.0.1:4004 -rules /etc/filtron/rules.json -target 127.0.0.1:8888
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target