From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E61691381F3 for ; Tue, 18 Dec 2012 17:39:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 728E721C024; Tue, 18 Dec 2012 17:39:34 +0000 (UTC) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D266021C006 for ; Tue, 18 Dec 2012 17:38:26 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id wy7so597086pbc.33 for ; Tue, 18 Dec 2012 09:38:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=FHfiJR8F8f6iutPNDyXs9k/eZtGPT4mZ2EoJ/C8q1tQ=; b=TIo/4US4I6ybOtukAf1cZDJJCLiZqxRHCwl5vP+H8vGJvLH9tJt3Lr1zx8LImKvfx8 6EhCOXD9136iSbuShp59hNlMZ+7tLte8D2oWU+paQswrbJQagO4LebydF/lWeesXk3Op e8LQ9pnB6P2Wx9hXJHxPcS8BTa3BgAfNd491vTg7VAlHd4Kph+mZua4RHWPzY2qEyvi/ e3z2PD1vmI6k8rl8hYU1JpQTLNrUCYPJ54qT0NnVMT//VgrFXnn8UUrKZuBpX8zpRmuh lCTbx3AxwDAWQPKjxe31W0CTb2CZCH7nKQD4OI9rEwPrLdlw+/zPOlPWdE3mnwlxelIc yLuQ== X-Received: by 10.66.84.3 with SMTP id u3mr8601989pay.51.1355852305443; Tue, 18 Dec 2012 09:38:25 -0800 (PST) Received: from [192.168.0.7] ([123.201.39.71]) by mx.google.com with ESMTPS id m3sm1778468pav.4.2012.12.18.09.38.23 (version=SSLv3 cipher=OTHER); Tue, 18 Dec 2012 09:38:24 -0800 (PST) Message-ID: <50D0AA0D.7040300@nileshgr.com> Date: Tue, 18 Dec 2012 23:08:21 +0530 From: Nilesh Govindrajan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] {OT} A simple routing problem References: <50CFE274.7070204@nileshgr.com> <50CFE564.4030709@gmail.com> <50CFE69A.7030502@nileshgr.com> <50D06F48.30802@nileshgr.com> <50D0A357.2070609@gmail.com> <50D0A47E.5060205@nileshgr.com> <50D0A805.1090207@gmail.com> In-Reply-To: <50D0A805.1090207@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmCBx58Doi123wbqaFwhFXqhSvp3xyPs+5XOVEu0oeC0C1eI1UO8XktvBpADSzzB5uvlUpE X-Archives-Salt: 94d5f76f-9101-45f0-89a8-69668cabdec0 X-Archives-Hash: 4055ba75f337efa9f1178ba908806da2 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: >>>>>> >>>>>> >>>>>> >>>>>>> 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 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