If you are seeing the above error in LXC, you need to do two things.
- Make sure the LXC container is running on privileged mode.
- Run the following commands inside the container:
mknod /dev/net/tun c 10 200
Now, you may run the OpenVPN command to start the VPN client:
openvpn --pull-filter ignore redirect-gateway --config ovpn.ovpn # assumming your vpn config file is ovpn.ovpn