Added hardening to confine its system capability to what SoftEther requires

This commit is contained in:
Hideki Saito committed 2015-06-22 10:59:34 -07:00
1 parent 74795cd42d
commit 73112980b3
3 files changed
+26

No files matched your search

+9
View File
@@ -11,6 +11,15 @@ ExecStop=/opt/vpnserver/vpnserver stop
KillMode=process
Restart=on-failure
# Hardening
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/opt/vpnserver
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE
[Install]
WantedBy=multi-user.target