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
Ask me anything
Posts: 8093
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: Force DownloadStation 5 to use VPN

Post by Moogle Stiltzkin » Mon Jul 29, 2019 6:04 pm

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 w. 4tb [ 3x HGST Deskstar NAS (HDN724040ALE640) & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 + 16gb ddr4 Crucial + QWA-AC2600 wireless adapter.
[Backup] QNAP TS-653A w. 5x 2TB Samsung F3 (HD203WI) EXT4 Raid5
[^] QNAP TS-659 Pro II 1x 4TB HGST Deskstar NAS
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-228 w. 1x 1TB WD RE3 (WD1002FBYS)
[^] QNAP TS-128
Mobile NAS TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Asus AC68U Router|100dl/50ul MBPS FTTH Internet | Windows 10, WC PC-Intel i7 920 Ivy bridge desktop (1x 512gb Samsung 850 Pro SSD + 1x 4tb HGST Ultrastar 7K4000)


Guides & articles
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review

https://www.patreon.com/mooglestiltzkin

dolbyman
Guru
Posts: 16118
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Force DownloadStation 5 to use VPN

Post by dolbyman » Mon Jul 29, 2019 9:29 pm

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: 18
Joined: Tue May 24, 2016 10:17 am

Re: Force DownloadStation 5 to use VPN

Post by jcmbowman » 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.
Model: TS-451+
RAM: 16 GB
Firmware: 4.4.1.1146 Build 20191206
Drives: 4x WDC WD6002FFWX 6TB
Storage: RAID5 16.35TB Usable

doolio
New here
Posts: 4
Joined: Mon Feb 01, 2016 3:56 pm

Re: Force DownloadStation 5 to use VPN

Post by doolio » Tue Jan 14, 2020 5:12 pm

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: 18
Joined: Tue May 24, 2016 10:17 am

Re: Force DownloadStation 5 to use VPN

Post by jcmbowman » Fri Jan 17, 2020 1:01 am

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.
Model: TS-451+
RAM: 16 GB
Firmware: 4.4.1.1146 Build 20191206
Drives: 4x WDC WD6002FFWX 6TB
Storage: RAID5 16.35TB Usable

doolio
New here
Posts: 4
Joined: Mon Feb 01, 2016 3:56 pm

Re: Force DownloadStation 5 to use VPN

Post by doolio » 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

Post Reply

Return to “Download Station and QGet”