Open bjoernv opened 10 months ago
@dsommers you have more experience on this part. Do you agree with the proposed solution?
2024-11-20 10:04:19 --user specified but lacking CAP_SETPCAP. Cannot retain CAP_NET_ADMIN. Disabling data channel offload
643
this is a different issue, although they both crossed path at the caps definition
Describe the bug If DCO is setup correctly, openvpn uses DCO, if it is started manually. See logs:
DCO device tun0 opened
But if openvpn started with the systemd unit openvpn@.service and a user is set, DCO is disabled. See logs:
TUN/TAP device tun1 opened
Version information (please complete the following information):
This is caused by a missing capability in the systemd unit file /etc/systemd/system/openvpn@.service.
The missing capability is CAP_SETPCAP.
The work-around is to create /etc/systemd/system/openvpn@.service.d/override.conf with this content:
From the configuration file:
See openvpn-2.6.8/src/openvpn/dco.c: