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
176 stars 92 forks source link

VPN_PORT not found in .ovpn file #18

Open globalnomad opened 5 years ago

globalnomad commented 5 years ago

I copied my .ovpn file from my provider into /config/openvpn. Upon launching the container, it eventually crashes out with the final log line as [crit] VPN_PORT not found in /config/openvpn/vpn.ovpn.

I opened the .ovpn as a text file and saw that rport is defined, but lport is not (nor is the variable mentioned). Is the error being reported suggesting that it needs an lport as well? If so, is there a default port I should add to the file or do I need to contact my provider?

Cheers.

globalnomad commented 5 years ago

I found a different ovpn file to use from my provider and I've gotten over the hurdle I've described above. However, I now have the following in my logs:

ROUTE_GATEWAY xxx.xx.x.x/255.255.0.0 IFACE=eth0 HWADDR=xx:xx:xx:xx:xx:xx ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)

Some googling has suggested that a reboot is all that is necessary on a standard Linux system, but I don't think that applies in this case. Any help on how to overcome this?

Thanks.

jlim0930 commented 5 years ago

my ovpn file had a line with remote xx.xx.xx without the port so i just edited to to say remote xx.xx.xx 1194 and the vpn portion started and worked.