Not sure if this is possible but I would like the ability to set which local gateway to use. e.g
In my server configuration, we have details for the usenet account and sabdnzb would use the default network settings to access that account. eg sabdnzb is on 192.168.1.10, default router is 192.168.1.1
My situation is that i have two gateways on my LAN i.e. 192.168.1.1 and 192.168.1.254. Both of these are on different ISPs. One has low latency and is very stable (1mbit)(copper)(1.1) whilst the other is on a wireless broadband 7.2mbit network (1.254). I'd like my sabdnzb to use the wireless network for downloads while im using the other for other things e.g surfing or whatever else (web server applications etc).
Reason is i need to keep inward access to this server clear for things like accessing sabdnzb from outside etc.
Is this feasible to include in the next version?
Feature request
Re: Feature request
You can and should take care of this on the network layer of the operating system: make a route with your specific gateway for specific destinations (read: the newsserver's IP address or IP block)
On Linux/Mac/*x: "ip route"
On Windows: "route print" and "route add"
After you do this, SAB's download traffic will use the other default gateway.
HTH
On Linux/Mac/*x: "ip route"
On Windows: "route print" and "route add"
After you do this, SAB's download traffic will use the other default gateway.
HTH
Re: Feature request
I sort of solved this thanks to Sander and some googling.
Syntax:
sudo route -nv add -net x.x.x.x/24 192.x.x.x
Whereby first ip is the destination ip e.g. of your usenet download server and 2nd ip is your gateway on your LAN.
You will need the superuser/sudo pw.
You will need to create a script and make it executable with chmod (google syntax) with the following lines:
sudo route -nv add -net x.x.x.x/24 192.x.x.x (usenet controller)
sudo route -nv add -net x.x.x.x/24 192.x.x.x (usenet download servers)
(remove -net if you are pointing to a single ip, remove the /24)
where usenet controller is the ip range or ip of the server that points sabdnzb to the download servers. You can use Network Utility (display state of all current connections) when sabnzbd is running. Look for the sites that show .nntp and lookup the ip address. e.g. astraweb will be a 216.151.x.x
and usenet download servers will be those that show multiple connections with .nntp e.g. astraweb will be a ips with 207.246.207.x.x
This script needs to be executed before sabnzbd is started otherwise it will go through the default connection first and show illegal multiple connection errors. Once the static routes have been put in, sabdnzb can be restarted without issue.
With this setup, you or your family can use a default gateway for surfing etc whilst sabnzbd downloads through the other gateway.
Syntax:
sudo route -nv add -net x.x.x.x/24 192.x.x.x
Whereby first ip is the destination ip e.g. of your usenet download server and 2nd ip is your gateway on your LAN.
You will need the superuser/sudo pw.
You will need to create a script and make it executable with chmod (google syntax) with the following lines:
sudo route -nv add -net x.x.x.x/24 192.x.x.x (usenet controller)
sudo route -nv add -net x.x.x.x/24 192.x.x.x (usenet download servers)
(remove -net if you are pointing to a single ip, remove the /24)
where usenet controller is the ip range or ip of the server that points sabdnzb to the download servers. You can use Network Utility (display state of all current connections) when sabnzbd is running. Look for the sites that show .nntp and lookup the ip address. e.g. astraweb will be a 216.151.x.x
and usenet download servers will be those that show multiple connections with .nntp e.g. astraweb will be a ips with 207.246.207.x.x
This script needs to be executed before sabnzbd is started otherwise it will go through the default connection first and show illegal multiple connection errors. Once the static routes have been put in, sabdnzb can be restarted without issue.
With this setup, you or your family can use a default gateway for surfing etc whilst sabnzbd downloads through the other gateway.
