hi i have been trying for a few days now and i hit the same dead end no matter which way i try and achieve getting OpenVPN working using PIA as the provider.
I am tried privileged and unprivileged containers covering deb 9/10 ubuntu 18/20 but its always the same issue. i am very new to linux so please keep it simple.
I create the container then edit basically follow
cd /etc/pve/lxc
nano 105.conf
lxc.mount.entry = /dev/net/tun dev/net/tun none bind,create=file
but i always get this same error
Sat Jul 17 08:35:10 2021 WARNING: file ‘/etc/openvpn/login.txt’ is group or others accessible
Sat Jul 17 08:35:10 2021 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 27 2021
Sat Jul 17 08:35:10 2021 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Sat Jul 17 08:35:10 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]154.21.22.171:1198
Sat Jul 17 08:35:10 2021 UDP link local: (not bound)
Sat Jul 17 08:35:10 2021 UDP link remote: [AF_INET]154.21.22.171:1198
Sat Jul 17 08:35:10 2021 WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
Sat Jul 17 08:35:10 2021 [atlanta416] Peer Connection Initiated with [AF_INET]154.21.22.171:1198 > Sat Jul 17 08:35:11 2021 OpenVPN ROUTE6: OpenVPN needs a gateway parameter for a --route-ipv6 option and no default was specified by either --route-ipv6-gateway or --ifconfig-ipv6 options > Sat Jul 17 08:35:11 2021 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3 > Sat Jul 17 08:35:11 2021 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1) > Sat Jul 17 08:35:11 2021 Exiting due to fatal error
i can read it enough to see that its fine with the username and password and that it does get an ip from PIA from what i am guessing its the part where it registers the connection inside the container as it cannot get to tun
i have tried everything i can think of and i am aware i should have installed proxmox 6 but everything has worked fine on proxmox7 until this.
my assumption is in debian 11 / bullseye the line to add to the containers conf file is no longer valid ?
i have googled the issue but keep hitting the same issue on everything does anyone know how to archive this i am literally banging my head against the wall on this one.