I found this https://community.openvpn.net/openvpn/wiki/UnprivilegedUser
After update of VyOS to current git version I started to got this errors on one of my sites:
Sep 3 09:59:56 M-P openvpn-vtun1[1757]: ERROR: Cannot ioctl TUNSETIFF vtun1: Operation not permitted (errno=1)
Sep 3 09:59:56 M-P openvpn-vtun1[1757]: Exiting due to fatal error
I think it happens when this site loos connection and trying to reconnect.
When I reboot VyOS it connects normally:
Sep 3 16:36:05 M-P openvpn-vtun1[1756]: /sbin/ip link set dev vtun1 up mtu 1500
Sep 3 16:36:05 M-P openvpn-vtun1[1756]: /sbin/ip addr add dev vtun1 10.x.y.z/16 broadcast 10.255.255.255
Sep 3 16:36:05 M-P openvpn-vtun1[1756]: /sbin/ip route add 10.0.0.0/8 via 10.255.0.1
What do you think? Is it could be interconnected? I'm not sure be cause on other sites same version works good.