Page 1 of 1

Download Center only through VPN

Posted: Tue Jul 28, 2015 5:52 am
by pafer
Hi all,

I'm quite new at all this so any help will be much appreciated.

Can anyone give me a step-by-step guide to get the Download Center only running through the VPN connection?

I want to retain remote access to the NAS but I want to keep my downloads/uploads anonymous, so I don't want to route everything through the VPN; just my Downloads/Uploads.


Thanks.

Re: Download Center only through VPN

Posted: Tue Dec 01, 2015 11:10 pm
by TheDave1022
Need this as well

Re: Download Center only through VPN

Posted: Wed Oct 12, 2016 2:04 am
by fjdsakllkj
+1. I've tried using the bind-address-ipv4 in transmission (works on Synology). Doesn't roll with Asustor... :(

Re: Download Center only through VPN

Posted: Sat Oct 29, 2016 1:45 am
by fjdsakllkj
Here's the script I'm running. It's retarded and Asustor should fix the routing for vpn clients like Synology does. Anyhow, this should work if you can bind download station to a specific IP (like transmissions ipv4-bind-address) otherwise, use transmission.

To get the trusted ip run ip route in the terminal and take note of the new route with your vpn ip. To get ifconfig_local look for inet addr: under the ppp255 interface (run ifconfig). route_net_gateway is your routers ip (192.168.x.1 something). You will also need to add

Code: Select all

200 vpn
to the end of

Code: Select all

/etc/iproute2/rt_tables
.

It's absolutely ridiculous that you have to do this manually, but that's what I come to expect from Asustor... Nothing's working on this damn nas. Sure, it's cheap and fast but the software. OMG.

Code: Select all

IP=/sbin/ip
ETH=eth0
TUN=ppp255
ifconfig_local=10.100.0.4
ifconfig_remote=10.100.0.1
trusted_ip=x.x.x.x
route_net_gateway=192.168.2.1

$IP route flush table vpn
$IP rule del from all to $ifconfig_local lookup vpn
$IP rule del from $ifconfig_local lookup vpn

$IP route add $trusted_ip via $route_net_gateway dev $ETH
$IP route add 10.100.0.0/1 via $ifconfig_remote dev $TUN
$IP route add 0.0.0.0/1 via $ifconfig_remote dev $TUN table vpn

$IP rule add from all to $ifconfig_local lookup vpn
$IP rule add from $ifconfig_local lookup vpn
$IP rule add from all to $ifconfig_remote lookup vpn
$IP rule add from $ifconfig_remote lookup vpn

Re: Download Center only through VPN

Posted: Fri Aug 02, 2019 4:36 am
by CodeMonkey_UK
Asustor need to add support for this.

Download center is useless to most without the vpn only restriction. Non of the BitTorrent clients are easily configured either.... combine this with the long term issue that vpn connections don't connect after reboot and I just don't trust using asustor nas for torrents

Such a wasted opportunity for you guys