Force DownloadStation 5 to use VPN

Post your questions about BT download, FTP download, HTTP download, or QGet download software here.
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: Force DownloadStation 5 to use VPN

Post by Moogle Stiltzkin »

afaik if vpn is setup on your router, then your qnap internet will already be using vpn.

if however you setup the vpn on the qnap itself using qvpn, then there are 2 things you can do

1. in virtual switch, make the gateway the VPN.
2. in appcenter for download station, there is a toggle to force the connection to use the VPN for it.

run a test using https://ipleak.net/ or some other, using the torrent magnet, and confirm the ip registered is using the VPN IP.

You may want to disable ipv6 on the qnap, and perhaps router as well, as that tends to leak your real ip.

I noticed that for vpn (PIA) setup on pfsense router, it's possible to setup a kill switch
https://www.youtube.com/watch?v=TglViu6ctWE&t=48s


Not sure about other routers (e.g. ASUS using rt merlin)
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
User avatar
dolbyman
Guru
Posts: 35249
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Force DownloadStation 5 to use VPN

Post by dolbyman »

asus merlin supports killswitch and selective routing

so you can have a container/vm on the nas use the vpn (e.g. for torrenting) but the rest is not using the tunnel
User avatar
jcmbowman
Starting out
Posts: 29
Joined: Tue May 24, 2016 10:17 am

Re: Force DownloadStation 5 to use VPN

Post by jcmbowman »

rob2424 wrote: Wed Jul 18, 2018 12:55 pm Hi,

I have configured the VPN on my 431P, connected it and then gone to the App Center and selected the dropdown next to DownloadStation and selected the VPN interface then launched the App. My download starts as expected but if I then disconnect the VPN connection, the download stops for a few seconds (as I would expect) then starts again. Is there any way to prevent downloads from running when the VPN disconnects?

Latest firmware as of last night and apps all up to date.

Any help, greatly appreciated.
An update on this -

Using PrivateInternetAccess with OpenVPN settings in QVPN I have DownloadStation connecting to the PIA VPN configuration. IPLeak.net shows that the torrent is coming through via the VPN. When I disconnect the VPN in QVPN all downloadstation traffic stops. Not sure if this was a bug in previous versions but everything appears to be working properly now. I'm stil going to do a test disconnect every week or two. Using latest versions of everything as of 12/30/2019.
TVS-h1288X - 48 GB RAM
2x Samsung SSD 850 EVO 1TB - RAID1 783GB Usable (Apps)
4x WDC WD120EFBX 12TB - RAID5 32.7TB Usable (Data)
2x Samsung SSD 850 EVO 1TB - RAID0 1.8GB Usable (Cache Acceleration for Data)
doolio
New here
Posts: 6
Joined: Mon Feb 01, 2016 3:56 pm

Re: Force DownloadStation 5 to use VPN

Post by doolio »

jcmbowman wrote: Wed Jan 01, 2020 12:24 am
rob2424 wrote: Wed Jul 18, 2018 12:55 pm Hi,

I have configured the VPN on my 431P, connected it and then gone to the App Center and selected the dropdown next to DownloadStation and selected the VPN interface then launched the App. My download starts as expected but if I then disconnect the VPN connection, the download stops for a few seconds (as I would expect) then starts again. Is there any way to prevent downloads from running when the VPN disconnects?

Latest firmware as of last night and apps all up to date.

Any help, greatly appreciated.
An update on this -

Using PrivateInternetAccess with OpenVPN settings in QVPN I have DownloadStation connecting to the PIA VPN configuration. IPLeak.net shows that the torrent is coming through via the VPN. When I disconnect the VPN in QVPN all downloadstation traffic stops. Not sure if this was a bug in previous versions but everything appears to be working properly now. I'm stil going to do a test disconnect every week or two. Using latest versions of everything as of 12/30/2019.
Can you list the details for how you got it to work so that it stops when you disconnect the VPN. I tried it and it didn't work. After reading this post it sounds like there are three areas to consider:
A) Set DownloadStation (DS) to use the client VPN in App Center
B) Set the client VPN as the default gateway
C) Add a proxy server for the VPN and check the box to use it for downloads

Do I have to do all of the above A, B, & C? Or just C? The specific configuration would be greatly appreciated.

Finally, how has the performance been? Has the VPN ever dropped when you didn't expect it to?
User avatar
jcmbowman
Starting out
Posts: 29
Joined: Tue May 24, 2016 10:17 am

Re: Force DownloadStation 5 to use VPN

Post by jcmbowman »

doolio wrote: Tue Jan 14, 2020 5:12 pm
jcmbowman wrote: Wed Jan 01, 2020 12:24 am Using PrivateInternetAccess with OpenVPN settings in QVPN I have DownloadStation connecting to the PIA VPN configuration. IPLeak.net shows that the torrent is coming through via the VPN. When I disconnect the VPN in QVPN all downloadstation traffic stops. Not sure if this was a bug in previous versions but everything appears to be working properly now. I'm stil going to do a test disconnect every week or two. Using latest versions of everything as of 12/30/2019.
Can you list the details for how you got it to work so that it stops when you disconnect the VPN. I tried it and it didn't work. After reading this post it sounds like there are three areas to consider:
A) Set DownloadStation (DS) to use the client VPN in App Center
B) Set the client VPN as the default gateway
C) Add a proxy server for the VPN and check the box to use it for downloads

Do I have to do all of the above A, B, & C? Or just C? The specific configuration would be greatly appreciated.

Finally, how has the performance been? Has the VPN ever dropped when you didn't expect it to?
I'm using A). I do NOT have B) in place. And with C) I set up the proxy server but unchecked the "Only download using a proxy connection" when I was testing a bit back and apparently never turned it back on. So it looks like for me it's A) and just A). Hope that helps.

As far as performance, DownloadStation is not as snappy as running Transmission on my MacBook Pro, but I kind of expected that. I did some adjusting in the Bandwidth Limit section of Download Station and set my max number of connections to 300 and maxnumber of connected peers per torrent to 50, I'll probably tweak those down a bit more - I've noticed with a lot of torrents going they all tend to slow down. I think part of that is that the OpenVPN client is taxing the CPU on the TS-451+ I have and it isn't designed to multi-thread. That said, it's still waaaay more convenient to load something on the server and just let it cook until it's done. And it doesn't seem to be impacting anything else on the server even with a dozen torrents going.

Lastly, I've never once had the PIA VPN drop unexpectedly except when my ISP drops. And it reconnects by default.
TVS-h1288X - 48 GB RAM
2x Samsung SSD 850 EVO 1TB - RAID1 783GB Usable (Apps)
4x WDC WD120EFBX 12TB - RAID5 32.7TB Usable (Data)
2x Samsung SSD 850 EVO 1TB - RAID0 1.8GB Usable (Cache Acceleration for Data)
doolio
New here
Posts: 6
Joined: Mon Feb 01, 2016 3:56 pm

Re: Force DownloadStation 5 to use VPN

Post by doolio »

jcmbowman wrote: Fri Jan 17, 2020 1:01 am
I'm using A). I do NOT have B) in place. And with C) I set up the proxy server but unchecked the "Only download using a proxy connection" when I was testing a bit back and apparently never turned it back on. So it looks like for me it's A) and just A). Hope that helps.

As far as performance, DownloadStation is not as snappy as running Transmission on my MacBook Pro, but I kind of expected that. I did some adjusting in the Bandwidth Limit section of Download Station and set my max number of connections to 300 and maxnumber of connected peers per torrent to 50, I'll probably tweak those down a bit more - I've noticed with a lot of torrents going they all tend to slow down. I think part of that is that the OpenVPN client is taxing the CPU on the TS-451+ I have and it isn't designed to multi-thread. That said, it's still waaaay more convenient to load something on the server and just let it cook until it's done. And it doesn't seem to be impacting anything else on the server even with a dozen torrents going.

Lastly, I've never once had the PIA VPN drop unexpectedly except when my ISP drops. And it reconnects by default.
THANKS I really appreciate the detailed response
User avatar
jcmbowman
Starting out
Posts: 29
Joined: Tue May 24, 2016 10:17 am

Re: Force DownloadStation 5 to use VPN

Post by jcmbowman »

doolio wrote: Sat Jan 18, 2020 8:48 am
jcmbowman wrote: Fri Jan 17, 2020 1:01 am
I'm using A). I do NOT have B) in place. And with C) I set up the proxy server but unchecked the "Only download using a proxy connection" when I was testing a bit back and apparently never turned it back on. So it looks like for me it's A) and just A). Hope that helps.

As far as performance, DownloadStation is not as snappy as running Transmission on my MacBook Pro, but I kind of expected that. I did some adjusting in the Bandwidth Limit section of Download Station and set my max number of connections to 300 and maxnumber of connected peers per torrent to 50, I'll probably tweak those down a bit more - I've noticed with a lot of torrents going they all tend to slow down. I think part of that is that the OpenVPN client is taxing the CPU on the TS-451+ I have and it isn't designed to multi-thread. That said, it's still waaaay more convenient to load something on the server and just let it cook until it's done. And it doesn't seem to be impacting anything else on the server even with a dozen torrents going.

Lastly, I've never once had the PIA VPN drop unexpectedly except when my ISP drops. And it reconnects by default.
THANKS I really appreciate the detailed response
Just an update to this:

I found that my BT download speeds in Download Station while using QVPN (via an OpenVPN connection to PIA) increased dramatically when I completely disabled the Proxy by setting the proxy type to OFF. Previously with the proxy type set to SOCKS and my PIA proxy info input my download speeds would average from 250K/s-500K/s, Now with it fully disabled I'm averaging 2M/s-5M/s with well seeded torrents.
TVS-h1288X - 48 GB RAM
2x Samsung SSD 850 EVO 1TB - RAID1 783GB Usable (Apps)
4x WDC WD120EFBX 12TB - RAID5 32.7TB Usable (Data)
2x Samsung SSD 850 EVO 1TB - RAID0 1.8GB Usable (Cache Acceleration for Data)
Post Reply

Return to “Download Station and QGet”