Page 1 of 1
Specify network interface
Posted: April 18th, 2008, 6:27 pm
by sangnom
My computer has two network interfaces representing two different internet connections (two different public IPs) however I wish for SABnzbd to use one of the connections. When both are enabled it will just stop every once in a while, running on the wrong connection, but when I disable one it runs constantly on the other. Is there a way to make it connect only to a specified network adapter? It is very inconvenient to have to disable the other connection.
Re: Specify network interface
Posted: April 19th, 2008, 3:05 am
by shypike
Re: Specify network interface
Posted: November 1st, 2009, 4:09 pm
by kobold
It is possible. I use SABnzbd+ on OS X and used the following command to bind SABnzbd+ to a different NIC then my first NIC.
Code: Select all
sudo route add -host news.server.com 10.0.0.2
Replace news.server.com with the the address (IP or hostname) of you newsserver.
Replace 10.0.0.2 with the gateway of you interface. You can also bind it to a interface instead of a gateway (see: man route).
The above command could also be used under Linux/unix. However the command my change a bit - see: man route - for details.
This "trick" is also available for Windows. I think it is the following command, otherwise search Google. Enter it in the command interface.
Code: Select all
route ADD news.server.com 10.0.0.2