From 068d99fa9aed0a04062197f5ec84c58cdbd51392 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Thu, 26 Mar 2020 17:49:31 +0800 Subject: [PATCH] Observation period #2328 --- systemd/system/v2ray.service | 3 ++- systemd/system/v2ray@.service | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/systemd/system/v2ray.service b/systemd/system/v2ray.service index c3569ae..9060eec 100644 --- a/systemd/system/v2ray.service +++ b/systemd/system/v2ray.service @@ -6,7 +6,8 @@ Wants=network-online.target [Service] Type=simple User=nobody -AmbientCapabilities=CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW +CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/ [Install] diff --git a/systemd/system/v2ray@.service b/systemd/system/v2ray@.service index 834028f..99a2b62 100644 --- a/systemd/system/v2ray@.service +++ b/systemd/system/v2ray@.service @@ -6,7 +6,8 @@ Wants=network-online.target [Service] Type=simple User=nobody -AmbientCapabilities=CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW +CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json [Install]