MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
177 stars 90 forks source link

Cannot connect to Pure VPN TUNSETIFF tun: Operation not permitted #171

Open dmudgeau opened 1 month ago

dmudgeau commented 1 month ago

Setup my container and placed the .ovpn file in the /config/openvpn directory first error I got was: ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)

Found a possible solution to run this in the start.sh script and the error went away: mkdir -p /dev/net mknod /dev/net/tun c 10 200 chmod 600 /dev/net/tun /etc/init.d/openvpn restart

Now I get this error and I don't know how to fix it suggestions are a permissions issue

ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)

I have tried with multiple .ovpn profiles from purevpn TCP and UDP and different servers.

I would really love to get this working! Thanks

dmudgeau commented 1 month ago

I solved this I was using an older docker image dyonr/qbittorrentvpn/

Didn't realise there was this newer one which worked out of the box!