summarylogtreecommitdiffstats
path: root/spoofdpi.service
blob: e6807dc3201922627abb3059888e32e10f89fd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[Unit]
Description=SpoofDPI Service
Wants=network-online.target
After=network-online.target

[Service]
SyslogIdentifier=spoofdpi
Restart=always
RestartSec=5
Type=simple
User=root
Group=root
EnvironmentFile=/etc/conf.d/spoofdpi
ExecStart=/usr/bin/spoofdpi -silent -addr $LISTEN_ADDR -port $PORT -window-size $WINDOW_SIZE
TimeoutStopSec=15
CapabilityBoundingSet=CAP_NET_RAW
IPAddressAllow=localhost link-local multicast
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProcSubset=pid
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=noaccess
ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @process @signal @system-service

[Install]
WantedBy=default.target