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

can't get vpn to read ovpn #52

Open Razielous opened 4 years ago

Razielous commented 4 years ago

i don't know any way to just "Drop a .ovpn file from your VPN provider into /config/openvpn and start the container again. " ive tried commands to copy the file into the config volume, ive tried mounting the file, ive even tried creating it as its own volume. image

this is the most "progress" ive made, and i would appreciate any help. thank you.

unclebobuk commented 4 years ago

get your ovpn config file from your VPN provider. It will contain all the certificates and settings your VPN provider will use and will define the VPN endpoint to which the vpn will connect. Place the file into this folder and call it something like config.ovpn...

if you are unsure how to get the content of your ovpn file into here you could simply use cut and paste for example.. get a copy of the ovpn file into your cut and paste buffer using notepad or whatever you want... then go to the container and do the following

cd /config/openvpn

cat - > config.ovpn

< right click with your mouse and paste the contents of your VPN providers OVPN settings >

^D <control key followed by letter D - adds an EOF - end of file marker> and returns you to the command prompt.

restart your container and check vpn is set to yes. check the log.

eyeruleall commented 4 years ago

I also just noticed it will also fail if there are any spaces in the ovpn file name.