Qbittorrent with OpenVPN

Ikytyn

Cadet
Joined
Apr 15, 2023
Messages
3
Hello, I recently reinstalled my server with the latest version of Truenas Scale 22.12.2. But it is impossible for me to add a VPN with OpenVPN I have this error. On the old version I had no problem

2023-04-15 17:13:21.172126+00:00mknod: /dev/net/tun: Operation not permitted
2023-04-15 17:13:21.172591+00:00+ exec sg vpn -c 'openvpn --cd /vpn --config /vpn/vpn.conf --script-security 2 --redirect-gateway def1 '
2023-04-15 17:13:21.174017+00:00Sat Apr 15 19:13:21 2023 WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6
2023-04-15 17:13:21.174040+00:00Sat Apr 15 19:13:21 2023 OpenVPN 2.4.9 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 20 2020
2023-04-15 17:13:21.174055+00:00Sat Apr 15 19:13:21 2023 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
2023-04-15 17:13:21.174070+00:00Sat Apr 15 19:13:21 2023 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
2023-04-15 17:13:21.174080+00:00Sat Apr 15 19:13:21 2023 Exiting due to fatal error
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
remove or comment out "keysize" in your config as a start.
 

Ikytyn

Cadet
Joined
Apr 15, 2023
Messages
3
Thank you for your time and for your help.
I deleted/commented out the keysize line but the problem persists. I would like to point out that qBittorrent works correctly when the VPN is not added but does not launch as soon as the VPN configuration is set

2023-04-15 20:19:45.843795+00:00mknod: /dev/net/tun: Operation not permitted
2023-04-15 20:19:45.844279+00:00+ exec sg vpn -c 'openvpn --cd /vpn --config /vpn/vpn.conf --script-security 2 --redirect-gateway def1 '
2023-04-15 20:19:45.845619+00:00Sat Apr 15 22:19:45 2023 OpenVPN 2.4.9 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 20 2020
2023-04-15 20:19:45.845641+00:00Sat Apr 15 22:19:45 2023 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
2023-04-15 20:19:45.845646+00:00Sat Apr 15 22:19:45 2023 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
2023-04-15 20:19:45.845651+00:00Sat Apr 15 22:19:45 2023 Exiting due to fatal error
 

Attachments

  • Capture d’écran 2023-04-15 222354.png
    Capture d’écran 2023-04-15 222354.png
    15.2 KB · Views: 86

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Well, clearly there's some issue with building the tun device node, and you need to figure out what's involved in making the passphrase for the key work as well. Check out the OpenVPN guidance especially for --auth-user-pass and see if there aren't some clues there.
 

Mark748

Cadet
Joined
Apr 16, 2023
Messages
2
I get the exact same issue when configuring OpenVPN on a different App.

2023-04-16 07:44:07.059675+00:00mknod: /dev/net/tun: Operation not permitted
2023-04-16 07:44:07.060736+00:00+ exec sg vpn -c 'openvpn --cd /vpn --config /vpn/vpn.conf --script-security 2 --redirect-gateway def1 '
2023-04-16 07:44:07.067230+00:00Sun Apr 16 08:44:07 2023 OpenVPN 2.4.9 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Apr 20 2020
2023-04-16 07:44:07.067352+00:00Sun Apr 16 08:44:07 2023 library versions: OpenSSL 1.1.1g 21 Apr 2020, LZO 2.10
2023-04-16 07:44:07.067498+00:00Sun Apr 16 08:44:07 2023 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
2023-04-16 07:44:07.067571+00:00Sun Apr 16 08:44:07 2023 Exiting due to fatal error

Any help would be much appreiated.
 
Top