It is currently Wed May 22, 2019 1:37 pm
All times are UTC + 8 hours

Download Center only through VPN

Download Center is an excellent download manager allows you to easily download and save files to your NAS. Your NAS can effectively replace your computer in helping you with any download jobs.

Download Center only through VPN

Postby pafer » Tue Jul 28, 2015 5:52 am

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.
pafer
 
Posts: 60
Joined: Tue Apr 28, 2015 6:13 am

Re: Download Center only through VPN

Postby TheDave1022 » Tue Dec 01, 2015 11:10 pm

Need this as well
TheDave1022
 
Posts: 104
Joined: Tue Dec 04, 2012 9:47 am

Re: Download Center only through VPN

Postby fjdsakllkj » Wed Oct 12, 2016 2:04 am

+1. I've tried using the bind-address-ipv4 in transmission (works on Synology). Doesn't roll with Asustor... :(
fjdsakllkj
 
Posts: 3
Joined: Mon Oct 10, 2016 1:57 pm

Re: Download Center only through VPN

Postby fjdsakllkj » Sat Oct 29, 2016 1:45 am

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
fjdsakllkj
 
Posts: 3
Joined: Mon Oct 10, 2016 1:57 pm

Return to Download Center

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 0 guests