-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/18/2012 09:38 AM, Nilesh Govindrajan wrote: > On Tuesday 18 December 2012 10:59:41 PM IST, Kevin Brandstatter > wrote: 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 >> > > 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 > I think you want the forward chain, im not sure what tools dd-wrt and iptables has for it as more of my experience is pf and pfsense, but their should be a way to forward packets headed for certain ports or networks to the ADSL gateway. just have the rule listen on the internal interface and redirect certain traffic to the other gateway
- -Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQ0LFzAAoJEAwpfz/ORQZC5CcIALTqfU43j54PADVeQnjH2O+W T8hzYT7jpD6llBhm2ApTHiROlWJmTnKo2VksDDyRE7GMDmocqvU9CWR9XvrOD8lF RMi+G2A6aTGqWPFNzmhrcbxxYEijsVtUehmkPTGqWqIdkFFy7qK0Mv/gU+nUjqzR bKxozG9MqByowHBmbFYbXf+fBoWDDlkrm7j0HgOe808mBGRMuiCBaKSB5SDyBGze lCVMsQ7GsZasys4cqhPqUbS/jmGxUvpIK4SBzcVGM3HpT3SowuRZhyeP3qbeFg/4 u6Mq9WwpLi1d89zKM65BSEsZJFwLWmoml112Wt+zLoOJidsXp7XovUDUYSLiu8A= =oL1a -----END PGP SIGNATURE-----

