summarylogtreecommitdiffstats
path: root/socks-relay.service
blob: 49dc53043eb0fc62f06583769773186174f17c43 (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 localhost:8999

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