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 920C31381F3 for ; Tue, 18 Dec 2012 09:33:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4642C21C151; Tue, 18 Dec 2012 09:32:54 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0599821C001 for ; Tue, 18 Dec 2012 09:31:46 +0000 (UTC) Received: from mail-pa0-f48.google.com ([209.85.220.48]:51797) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.80) (envelope-from ) id 1TktWd-003AIl-8g for gentoo-user@lists.gentoo.org; Tue, 18 Dec 2012 16:31:47 +0700 Received: by mail-pa0-f48.google.com with SMTP id fa1so397462pad.21 for ; Tue, 18 Dec 2012 01:31:45 -0800 (PST) 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 Received: by 10.68.135.99 with SMTP id pr3mr4725625pbb.151.1355823105483; Tue, 18 Dec 2012 01:31:45 -0800 (PST) Received: by 10.68.17.199 with HTTP; Tue, 18 Dec 2012 01:31:45 -0800 (PST) Received: by 10.68.17.199 with HTTP; Tue, 18 Dec 2012 01:31:45 -0800 (PST) In-Reply-To: <50CFF766.3010308@nileshgr.com> References: <50CFE274.7070204@nileshgr.com> <50CFE564.4030709@gmail.com> <50CFE69A.7030502@nileshgr.com> <50CFE901.4060500@gmail.com> <50CFEA56.30304@nileshgr.com> <50CFECC4.6080500@gmail.com> <50CFEF93.5010705@nileshgr.com> <50CFF766.3010308@nileshgr.com> Date: Tue, 18 Dec 2012 16:31:45 +0700 Message-ID: Subject: Re: [gentoo-user] {OT} A simple routing problem From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=047d7b11190394a52704d11d2a78 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Get-Message-Sender-Via: svr-us4.tirtonadi.com: authenticated_id: rileyer+pandu.poluan.info/only user confirmed/virtual account not confirmed X-Archives-Salt: 7cdbf9a3-91ad-4f74-b83b-1c8d98c972d7 X-Archives-Hash: 849b2cfac7ffb75fe23bf5b05247b8f1 --047d7b11190394a52704d11d2a78 Content-Type: text/plain; charset=UTF-8 On Dec 18, 2012 11:59 AM, "Nilesh Govindrajan" wrote: > > On Tuesday 18 December 2012 09:52:43 AM IST, Nilesh Govindrajan wrote: > > On Tuesday 18 December 2012 09:40:44 AM IST, Kevin Brandstatter wrote: > >> On 12/17/2012 08:00 PM, Nilesh Govindrajan wrote: > >>> On Tuesday 18 December 2012 09:24:41 AM IST, Kevin Brandstatter > >>> wrote: > >>>> On 12/17/2012 07:44 PM, Nilesh Govindrajan wrote: > >>>>> On Tuesday 18 December 2012 09:09:16 AM IST, Kevin > >>>>> Brandstatter wrote: > >>>>>> On 12/17/2012 07:26 PM, Nilesh Govindrajan wrote: > >>>>>>> Hi, > >>>>>>> > >>>>>>> I'm stuck with a routing issue: > >>>>>>> > >>>>>>> I have a DD-WRT router, which has one WAN port and four > >>>>>>> LAN ports with WiFi. > >>>>>>> > >>>>>>> I have a fiber connection which is connected by dialing > >>>>>>> PPPoE using pppd on the router, so I have no choice but to > >>>>>>> connect the fiber connection on WAN port. > >>>>>>> > >>>>>>> I have yet another (much slower) ADSL link, with it's own > >>>>>>> router (LAN-only). I'm trying to connect the router to the > >>>>>>> DD-WRT router's LAN port. I'm able to access the router, > >>>>>>> but routing through the gateway (the ADSL router) fails. > >>>>>>> > >>>>>>> Here's a simple diagram: > >>>>>>> > >>>>>>> The LAN network I'm using on DDWRT is 192.168.0.0, which > >>>>>>> is the LAN network for the internal side and WiFi. > >>>>>>> > >>>>>>> The fiber connection is obviously public network. > >>>>>>> > >>>>>>> The other ADSL connection can be configured to change > >>>>>>> subnet, it has a LAN side and WAN side. > >>>>>>> > >>>>>>> How I can I route through the ADSL router without requiring > >>>>>>> a separate NIC/network for it? > >>>>>>> > >>>>>> what exactly are you trying to route? traffic out to the > >>>>>> internet over the ADSL? or just trying to connect the > >>>>>> machines on that router to the fiber line and route all > >>>>>> traffic from both out on the fiber? > >>>>>> > >>>>>> -Kevin > >>>>> > >>>>> > >>>>> 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 Govindarajan http://nileshgr.com > >>>>> > >>>> well in that case if you know how to set it up so that the > >>>> dd-wrt router can see the ADSL gateway you can set a route on > >>>> your box to route traffic on a specific device to that gateway. > >>>> In fact, you might even be able to static route the torrent ports > >>>> to that gateway from dd-wrt > >>>> > >>>> -Kevin > >>> > >>> > >>> I tried that. As the simplest test, I added this on ddwrt: > >>> > >>> route add -host 8.8.8.8 gw 192.168.0.32 > >>> > >>> Where 192.168.0.32 is the private IP of my ADSL router. But when I > >>> say ping 8.8.8.8 from ddwrt, I don't get any response. Any idea why > >>> this happens? > >>> > >>> -- Nilesh Govindarajan http://nileshgr.com > >>> > >> is the ADSL configured to forward to the internet? how is the gateway > >> set up? it needs to be configured to route the outbound traffic to the > >> internet > >> > >> -Kevin > > > > Yes, I have a static IP on the ADSL connection and it is setup for the > > same. Connects using MER and NAT is enabled. > > If I connect the router to DD-WRT's WAN port and change subnet of the > > ADSL private network (matching the same on WAN interface), then it > > works properly. > > > > -- > > Nilesh Govindarajan > > http://nileshgr.com > > Wait, it just worked. Looks like I missed out something yesterday. > Thanks for your help. > Most likely, it's just route caching. I forgot the exact command, but it goes like 'ip route cache flush'. Rgds, -- --047d7b11190394a52704d11d2a78 Content-Type: text/html; charset=UTF-8


On Dec 18, 2012 11:59 AM, "Nilesh Govindrajan" <me@nileshgr.com> wrote:
>
> On Tuesday 18 December 2012 09:52:43 AM IST, Nilesh Govindrajan wrote:
> > On Tuesday 18 December 2012 09:40:44 AM IST, Kevin Brandstatter wrote:
> >> On 12/17/2012 08:00 PM, Nilesh Govindrajan wrote:
> >>> On Tuesday 18 December 2012 09:24:41 AM IST, Kevin Brandstatter
> >>> wrote:
> >>>> On 12/17/2012 07:44 PM, Nilesh Govindrajan wrote:
> >>>>> On Tuesday 18 December 2012 09:09:16 AM IST, Kevin
> >>>>> Brandstatter wrote:
> >>>>>> On 12/17/2012 07:26 PM, Nilesh Govindrajan wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I'm stuck with a routing issue:
> >>>>>>>
> >>>>>>> I have a DD-WRT router, which has one WAN port and four
> >>>>>>> LAN ports with WiFi.
> >>>>>>>
> >>>>>>> I have a fiber connection which is connected by dialing
> >>>>>>> PPPoE using pppd on the router, so I have no choice but to
> >>>>>>> connect the fiber connection on WAN port.
> >>>>>>>
> >>>>>>> I have yet another (much slower) ADSL link, with it's own
> >>>>>>> router (LAN-only). I'm trying to connect the router to the
> >>>>>>> DD-WRT router's LAN port. I'm able to access the router,
> >>>>>>> but routing through the gateway (the ADSL router) fails.
> >>>>>>>
> >>>>>>> Here's a simple diagram:
> >>>>>>>
> >>>>>>> The LAN network I'm using on DDWRT is 192.168.0.0, which
> >>>>>>> is the LAN network for the internal side and WiFi.
> >>>>>>>
> >>>>>>> The fiber connection is obviously public network.
> >>>>>>>
> >>>>>>> The other ADSL connection can be configured to change
> >>>>>>> subnet, it has a LAN side and WAN side.
> >>>>>>>
> >>>>>>> How I can I route through the ADSL router without requiring
> >>>>>>> a separate NIC/network for it?
> >>>>>>>
> >>>>>> what exactly are you trying to route? traffic out to the
> >>>>>> internet over the ADSL? or just trying to connect the
> >>>>>> machines on that router to the fiber line and route all
> >>>>>> traffic from both out on the fiber?
> >>>>>>
> >>>>>> -Kevin
> >>>>>
> >>>>>
> >>>>> 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 Govindarajan http://nileshgr.com
> >>>>>
> >>>> well in that case if you know how to set it up so that the
> >>>> dd-wrt router can see the ADSL gateway you can set a route on
> >>>> your box to route traffic on a specific device to that gateway.
> >>>> In fact, you might even be able to static route the torrent ports
> >>>> to that gateway from dd-wrt
> >>>>
> >>>> -Kevin
> >>>
> >>>
> >>> I tried that. As the simplest test, I added this on ddwrt:
> >>>
> >>> route add -host 8.8.8.8 gw 192.168.0.32
> >>>
> >>> Where 192.168.0.32 is the private IP of my ADSL router. But when I
> >>> say ping 8.8.8.8 from ddwrt, I don't get any response. Any idea why
> >>> this happens?
> >>>
> >>> -- Nilesh Govindarajan http://nileshgr.com
> >>>
> >> is the ADSL configured to forward to the internet? how is the gateway
> >> set up? it needs to be configured to route the outbound traffic to the
> >> internet
> >>
> >> -Kevin
> >
> > Yes, I have a static IP on the ADSL connection and it is setup for the
> > same. Connects using MER and NAT is enabled.
> > If I connect the router to DD-WRT's WAN port and change subnet of the
> > ADSL private network (matching the same on WAN interface), then it
> > works properly.
> >
> > --
> > Nilesh Govindarajan
> > http://nileshgr.com
>
> Wait, it just worked. Looks like I missed out something yesterday.
> Thanks for your help.
>

Most likely, it's just route caching. I forgot the exact command, but it goes like 'ip route cache flush'.

Rgds,
--

--047d7b11190394a52704d11d2a78--