summarylogtreecommitdiffstats
path: root/socks-relay.service
blob: 6965b40e41c55f2419d56c41e4b41bcfd4de7ca3 (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
[Unit]
Description=Simple socks5 server and relay
After=network.target

[Service]
Type=simple
DynamicUser=true

EnvironmentFile=/etc/default/socks-relay
ExecStart=/usr/bin/socks-relay $SOCKS_RELAY_HOST:$SOCKS_RELAY_PORT

Restart=always
RestartSec=10s

ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true

ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true

RestrictNamespaces=true

SystemCallArchitectures=native
SystemCallFilter=@system-service
RestrictAddressFamilies=AF_INET AF_INET6

LockPersonality=true
RestrictRealtime=true

[Install]
WantedBy=multi-user.target