On Tuesday 18 December 2012 10:59:41 PM IST, Kevin Brandstatter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/18/2012 09:14 AM, Nilesh Govindrajan wrote: >> On Tuesday 18 December 2012 10:39:43 PM IST, Kevin Brandstatter >> wrote: On 12/18/2012 05:27 AM, Nilesh Govindrajan wrote: >>>>> On Tuesday 18 December 2012 03:41:44 PM IST, J. Roeleveld >>>>> wrote: >>>>>> On Tue, December 18, 2012 04:44, Nilesh Govindrajan wrote: >>>>>> >>>>>> <SNIP> >>>>>> >>>>>>> Actually my fiber connection has a smaller limit than the >>>>>>> ADSL connection. I am trying to use the fiber connection >>>>>>> for all activities except some torrent downloading for >>>>>>> which I want to use my ADSL connection. Once I'm able to >>>>>>> route through the ADSL gateway, it would be easy for me >>>>>>> to setup another ip on eth0 on my machine on which >>>>>>> transmission could listen. All traffic on that ip would >>>>>>> be routed through ADSL and otherwise the fiber. >>>>>> >>>>>> Nilesh, >>>>>> >>>>>> I read that you managed to fix it, but for completenes and, >>>>>> if applicable, a different solution would be a router with >>>>>> 2 or more WAN-ports that can do the routing for you. Added >>>>>> benefit there would be that if the fiber connection dies, >>>>>> it would be able to automatically route everything through >>>>>> the ADSL. >>>>>> >>>>>> -- Joost >>>>>> >>>>>> >>>>> >>>>> Yeah that solution is always there, but I'm not going for >>>>> that since I'm evaluating the fiber connection (a new ISP in >>>>> my locality). Won't need the ADSL may be after a month or so >>>>> when I'll have unlimited plan on fiber. >>>>> >>>>> @Pandu, or may be the DSL ISP was down yesterday when I was >>>>> trying. >>>>> >>>>> The problem is not exactly fixed yet, although I'm able to >>>>> add static routes on the DDWRT router using route command >>>>> (and it is working), there's no way to route all traffic from >>>>> a source via the other router. It doesn't have iptables ROUTE >>>>> target neither iproute2 support.. is there some other method >>>>> do to this using iptables? >>>>> >>>>> The whole problem would be solved if I could add routes on my >>>>> local machine, but that doesn't seem to work. It always goes >>>>> via fiber which is the default route. >>>>> >>>>> The final solution to this problem would be putting in a >>>>> Linux machine there. I'm trying to build Gentoo for the >>>>> Raspberry Pi which can be used for this task, but stuck at >>>>> Python since it won't cross compile. Anyway that's another >>>>> topic. >>>>> >>>>> -- Nilesh Govindarajan http://nileshgr.com >>>>> >> you actually can add routes on a local machine. the real trick >> would be to have them pushed from the dd-wrt box so that they dont >> have to be manually set each time >> >> -Kevin >>> >> >> How?? >> >> -- Nilesh Govindarajan http://nileshgr.com >> > > with the route add command. > obviously not as clean as an iptables forward rule which is also an option > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with undefined - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJQ0KgFAAoJEAwpfz/ORQZCYDwH/0lZMsp+Ncr2kO5iVbuX5Oje > 3PUuelWA3IxhF7xmRkNoyMZr+A5QGGWajp7JHPHSSJ/k+Iv7h3xYDABgRwm3tSaP > S0tM0VwFVLXHukhUo8vWFOqU6vmCrTuhNtiTYehFYXXS2pzc07kG+b27aH1RSKsD > 6zrha22EbaNe7c4dtdVY4rQ/GtPbpiDjAjvQev0nEreP4uLtwWJmx6V6onlGObGi > 0v6TVs9dB7fXQh2z5XaYt4BQ1ORqzi0o2ocKTOURJd23kQAXRDfI96+xjG8Bro77 > AcaxjXq8bP/W8mdDqFL3w44CF7QDca3uXKAOlGC1Qbm9XVmkETpCQrlzL8aKM0k= > =oIGG > -----END PGP SIGNATURE----- >
I'm presently ssh'ing into the DDWRT router and doing this: route add -host <hostname> gw 192.168.0.32 and it's pretty much working, except that I've to add a route to every host for which I want to use the ADSL connection. If I do the same on my local machine, it doesn't work and packets still end up going through my fiber connection. Would iptables ROUTE target help if I use that on my local machine? -- Nilesh Govindarajan http://nileshgr.com