Hi i have been trying to get openvpn to work with my PIA subscription but i keep hitting dead ends.
I essentially get the following error message on all the different ways i have tried this.
I did make a mistake which worked first time and that was when i thought i was in the container but i was in the pve shell and it just worked, i have removed everything now and everything is working fine with the rest of my setup.
My Container config has been updated ( its been done in a privilaged container )
at the end
so i am assuming the command has changed for v7?
i have tried
Debian 9
Debian 10
Ubuntu 18
Ubuntu 20
and its always the same error but when i accidentally put all the commands into the PVE shell it worked no issues it also works inside a VM without issue i just cannot get the container to work with PIA on Open VPN. firs heart attack when i realised i did it on the main pve but thankfully it purged fine and removed all the scripts.
thanks
I essentially get the following error message on all the different ways i have tried this.
Code:
root@PIA:~# openvpn --config /etc/openvpn/uk_southampton.ovpn --auth-user-pass /etc/openvpn/login.txt
Fri Jul 16 20:55:16 2021 WARNING: file '/etc/openvpn/login.txt' is group or others accessible
Fri Jul 16 20:55:16 2021 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 27 2021
Fri Jul 16 20:55:16 2021 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Fri Jul 16 20:55:16 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]143.244.38.22:1198
Fri Jul 16 20:55:16 2021 UDP link local: (not bound)
Fri Jul 16 20:55:16 2021 UDP link remote: [AF_INET]143.244.38.22:1198
Fri Jul 16 20:55:16 2021 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Fri Jul 16 20:55:16 2021 [southampton407] Peer Connection Initiated with [AF_INET]143.244.38.22:1198
Fri Jul 16 20:55:17 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
Fri Jul 16 20:55:17 2021 OpenVPN ROUTE: failed to parse/resolve route for host/network: 2000::/3
Fri Jul 16 20:55:17 2021 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)
Fri Jul 16 20:55:17 2021 Exiting due to fatal error
I did make a mistake which worked first time and that was when i thought i was in the container but i was in the pve shell and it just worked, i have removed everything now and everything is working fine with the rest of my setup.
My Container config has been updated ( its been done in a privilaged container )
Code:
arch: amd64
cores: 1
hostname: PIA
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=A2:8D:73:5E:12:D1,ip=dhcp,type=veth
ostype: ubuntu
rootfs: VM_Storage:subvol-105-disk-0,size=8G
swap: 512
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
so i am assuming the command has changed for v7?
i have tried
Debian 9
Debian 10
Ubuntu 18
Ubuntu 20
and its always the same error but when i accidentally put all the commands into the PVE shell it worked no issues it also works inside a VM without issue i just cannot get the container to work with PIA on Open VPN. firs heart attack when i realised i did it on the main pve but thankfully it purged fine and removed all the scripts.
thanks