2020-08-29 13:58:07 +00:00
|
|
|
[Unit]
|
|
|
|
|
Description=V2Ray Service
|
|
|
|
|
Documentation=https://www.v2fly.org/
|
|
|
|
|
After=network.target nss-lookup.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
2021-12-01 14:41:50 +00:00
|
|
|
# added automatically, for details please see
|
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
ProtectHome=true
|
|
|
|
|
PrivateDevices=true
|
|
|
|
|
ProtectHostname=true
|
|
|
|
|
ProtectClock=true
|
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
|
ProtectKernelModules=true
|
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
|
ProtectControlGroups=true
|
|
|
|
|
RestrictRealtime=true
|
|
|
|
|
# end of automatic additions
|
2020-08-29 13:58:07 +00:00
|
|
|
User=nobody
|
|
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
|
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
Environment=V2RAY_LOCATION_ASSET=/usr/share/v2ray
|
2023-01-05 14:01:08 +00:00
|
|
|
ExecStart=/usr/bin/v2ray run -config /etc/v2ray/%i.json
|
2020-08-29 13:58:07 +00:00
|
|
|
Restart=on-failure
|
2020-09-14 07:39:32 +00:00
|
|
|
RestartPreventExitStatus=23
|
2020-08-29 13:58:07 +00:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|