NordVPN/PIA and qBittorrent problem

Currently reading
NordVPN/PIA and qBittorrent problem

291
89
NAS
DS920+, DS416slim
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi there people. My aim is to have QBit running via a VPN. I have subscriptions to both PIA and Nord, have tried with both but to no avail.

I am mega new to both SSH and docker so I'm probably doing something very obviously wrong.

I've followed the instructions over here - I had no idea these were @Rusty 's guides, but makes sense now recognising the face!

I can SSH in fine, and install the QBit container fine.

docker run --privileged -d --name=qbittorrent -v /volume1/docker/qbit/config/:/config -v /volume1/torr/:/downloads -e "VPN_ENABLED=yes" -e "VPN_USERNAME=myPIAusername" -e "VPN_PASSWORD=myPIApassword" -e "LAN_NETWORK=192.168.1.0/24" -e "NAME_SERVERS=8.8.8.8,8.8.4.4" -p 8080:8080 -p 8999:8999 -p 8999:8999/udp markusmcnugen/qbittorrentvpn

The username and password I am using are the regular ones I use to log into the website and app etc.

It runs and gives the following log:

Code:
date    stream    content
2021-11-26 13:33:26    stdout    Use --help for more information.
2021-11-26 13:33:26    stdout    Options error: In [CMD-LINE]:1: Error opening configuration file: /config/openvpn/uk-aes-256-cbc-udp-dns.ovpn
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.385118 [info] Starting OpenVPN...
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.349514 [info] PGID not defined. Defaulting to root group
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.312613 [info] PUID not defined. Defaulting to root user
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.277512 [info] Adding 8.8.4.4 to resolv.conf
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.241315 [info] Adding 8.8.8.8 to resolv.conf
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.204678 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.168158 [info] NAME_SERVERS defined as '8.8.8.8,8.8.4.4'
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.132110 [info] LAN_NETWORK defined as '192.168.1.0/24'
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.095738 [info] VPN_DEVICE_TYPE defined as 'tun0'
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.059533 [info] VPN_PROTOCOL defined as 'udp'
2021-11-26 13:33:26    stdout    2021-11-26 13:33:26.023264 [info] VPN_PORT defined as '1197'
2021-11-26 13:33:25    stdout    2021-11-26 13:33:25.986947 [info] VPN_REMOTE defined as 'uk-london.privacy.network'
2021-11-26 13:33:25    stdout    2021-11-26 13:33:25.950240 [info] VPN remote line defined as 'uk-london.privacy.network 1197'
2021-11-26 13:33:25    stderr    dos2unix: converting file /config/openvpn/uk-aes-256-cbc-udp-dns.ovpn to Unix format...
2021-11-26 13:33:25    stdout    2021-11-26 13:33:25.866884 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/uk-aes-256-cbc-udp-dns.ovpn
2021-11-26 13:33:25    stdout    2021-11-26 13:33:25.801596 [info] VPN_ENABLED defined as 'yes'

The last part of the log "Options error" seems odd to me as it has already opened the config file at the beginning of the process?

When I try to open the QBit local/admin page at 192.168.1.174:8080 (in Firefox) i get an error:
- via http: "The connection was reset: The connection to the server was reset while the page was loading."
- via https: "Secure Connection Failed: An error occurred during a connection to 192.168.1.174:8080. PR_END_OF_FILE_ERROR"

I have done the tun.ko testing part, making sure it runs on reboot etc and this seems fine (even if it did take me hours to work out i needed putty, and how to close the file once editing it...!).

curl ifconfig.me gives the error "Could not resolve host" so i think maybe the issue is with the ovpn cert I am using? Which is:

client
dev tun
proto udp
remote uk-london.privacy.network 1197
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-256-cbc
auth sha256
tls-client
remote-cert-tls server

auth-user-pass
compress
verb 1
reneg-sec 0
<crl-verify>
-----BEGIN X509 CRL-----

xxx

-----END X509 CRL-----
</crl-verify>

<ca>
-----BEGIN CERTIFICATE-----

xxx

-----END CERTIFICATE-----
</ca>

disable-occ

I am putting the ovpn file in "/docker/qbit/config/openvpn" which I think is correct given what i have defined the config folder as (and it seems to be getting read).

If anyone is able to shed some light on this it would be most appreciated. I am in well above my depth here!!
 
If it's any help, I gave up doing this on DSM because of all the inherent issues. Instead I bought a Raspberry Pi and did it on that, which works VERY well.

Installing NordVPN on Debian, Ubuntu, Raspberry Pi, Elementary OS & Linux Mint | NordVPN support

Installing qBittorrent on the Raspberry Pi

My notes for one particular part, connecting RPi to DSM shares

TO SEE SHARED FOLDER FROM NAS:


Make rpi wait for networkSettings - Pref - Rpi Config - wait for network
Enable ssh
ssh into pi
Create mount point on rpi in terminalsudo mkdir /mnt/torr
Edit startup filesudo nano /etc/fstab
enter as one single line//192.168.1.174/torr /mnt/torr cifs username=username,password=password,rw,file_mode=0777,dir_mode=0777 0 0

IP address is for DSM torrent share
save and exitCTRL + X
Y
ENTER
reboot and checksudo reboot
repeat for video don't forget to create video directory in mnt as well

/mnt/vid/
Are you able to expand on this part? Make it more step by step? I spent the last week doing what you suggested and abandoning DSM 7 and getting what I used to use working on DSM 6 working now on a Raspberry Pi: Transmission, Docker and Portainer, and I also added OpenMediaVault to the mix to accomplish this. The last piece of the puzzle is this step, linking the Pi to the Nas. Right now I am using an external drive on the Pi, which was how I got it up and running, but would like to ditch that to run it headless and I guess tailless? Is that a thing?
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Hi, I'll start by saying, my understanding of networking is very limited so I apologize if I'm asking an...
Replies
0
Views
693
  • Solved
Hey all, So I finally managed to get this thing working! thank you to @Rusty for you assistance also...
Replies
14
Views
9,061
I mean an older version. I believe hotio is offering a container with a legacy version of qbittorrent due...
Replies
111
Views
13,766

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top