* [gentoo-user] {OT} A simple routing problem @ 2012-12-18 3:26 Nilesh Govindrajan 2012-12-18 3:39 ` Kevin Brandstatter 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 3:26 UTC (permalink / raw To: Gentoo User Mailing List 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? -- Nilesh Govindarajan http://nileshgr.com ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 3:26 [gentoo-user] {OT} A simple routing problem Nilesh Govindrajan @ 2012-12-18 3:39 ` Kevin Brandstatter 2012-12-18 3:44 ` Nilesh Govindrajan 0 siblings, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 3:39 UTC (permalink / raw To: gentoo-user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQz+VkAAoJENfP/Gsfo0VKoYEH/RF2dS+OL1E3F6R6ttzg2hCQ W40hpfLXoYJ9b9Imha+yLLLp4EaIDFfleCRDKVgqUd5P4iuj8Vb1bwct+Tig2tYf LmS1GRoSzeWH8n3uAIel5Uq2+ZXHx+FLwP0Ld8JzRFCMElwGqDiKxIxdUctYpMad y6RIBtoe2iOPanfBLdL7lBYu3MqThGc8QBV4oBRNUbPQsfdO4Q3NIqHc1WZwhyrX BkfFgqp75K2LeCgu2snkqDo3ul+W1BTvI4e4fQk3ByUIxJ18Cpelfazvwsul74wS IR+1EKqXvhTU2Iu8klkNlIt2ph+nbufm/BalvILpbhHQga4zCfYVG9UWj/Xx10E= =Oajb -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 3:39 ` Kevin Brandstatter @ 2012-12-18 3:44 ` Nilesh Govindrajan 2012-12-18 3:54 ` Kevin Brandstatter 2012-12-18 10:11 ` J. Roeleveld 0 siblings, 2 replies; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 3:44 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 3:44 ` Nilesh Govindrajan @ 2012-12-18 3:54 ` Kevin Brandstatter 2012-12-18 4:00 ` Nilesh Govindrajan 2012-12-18 10:11 ` J. Roeleveld 1 sibling, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 3:54 UTC (permalink / raw To: gentoo-user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQz+kBAAoJENfP/Gsfo0VKmi0H/0MU+5/fZUPTsJCBqXzigaHT /cg3Th/SCTyd7F07OPzL6tFXT+toy0DLgQ1jbwx60qk8eV2YWQH/k8g9XDYg4cQG qYI0JEgt2Gbg5BZONAYRDPX7R/iFnU4mbPqkXR8S7lBxBXTLUaTrE5JOTQzBO38v XlVgfm0oPS50Cl4HkwZHgQPv5FkOL3h+zqjzLm+3LXNbToOiRUvi9w37kJgBXzh8 h5NOn/BvFkvKtKVAAt4tStqxxNoCAfeTOBquCyxG9lnSMM8exx/zCpQrKVs4wTcF UIXVeC7ZpKTRid9L5V6rSl63gSSaptfWfxLMDCBiBAECI4JGjjRMBSRaA67ldfw= =yl3e -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 3:54 ` Kevin Brandstatter @ 2012-12-18 4:00 ` Nilesh Govindrajan 2012-12-18 4:10 ` Kevin Brandstatter 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 4:00 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 4:00 ` Nilesh Govindrajan @ 2012-12-18 4:10 ` Kevin Brandstatter 2012-12-18 4:22 ` Nilesh Govindrajan 0 siblings, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 4:10 UTC (permalink / raw To: gentoo-user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQz+zEAAoJENfP/Gsfo0VKj2IH/1MpbUBS5vPPJtAa2jJprlyh kDWDwVs7NFRrJE4SjOlXZmijP/5loE9YIvijm4rSNurLgqNxseatAQugAdERN4Py Hrp+bTtr0AJ2EBwlabQsg0B7u0sFXuEjerhw4qoctEDw8cvbuKL7s3PWZzrXt2mk 3q++duj+2Riru2ojfX4oXFfoKCyQ3URVeosDfwF/leL8HTbsaUUYOQYV1bTGfcO7 JFmzS8w6X7CbdAEqjbSn7fu5WjLV3EvUYs8n1Xc12mtgptKZs1MkiSAN52Wwdihw 1vkZggTBuGTbs9RfJzKbtt/++tBH8Lxf+R3NetBzgBkzo4W9IFVsznY4GKH0+AE= =aWAr -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 4:10 ` Kevin Brandstatter @ 2012-12-18 4:22 ` Nilesh Govindrajan 2012-12-18 4:56 ` Nilesh Govindrajan 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 4:22 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 4:22 ` Nilesh Govindrajan @ 2012-12-18 4:56 ` Nilesh Govindrajan 2012-12-18 9:31 ` Pandu Poluan 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 4:56 UTC (permalink / raw To: gentoo-user 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. -- Nilesh Govindarajan http://nileshgr.com ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 4:56 ` Nilesh Govindrajan @ 2012-12-18 9:31 ` Pandu Poluan 0 siblings, 0 replies; 17+ messages in thread From: Pandu Poluan @ 2012-12-18 9:31 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 4018 bytes --] 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, -- [-- Attachment #2: Type: text/html, Size: 6183 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 3:44 ` Nilesh Govindrajan 2012-12-18 3:54 ` Kevin Brandstatter @ 2012-12-18 10:11 ` J. Roeleveld 2012-12-18 13:27 ` Nilesh Govindrajan 1 sibling, 1 reply; 17+ messages in thread From: J. Roeleveld @ 2012-12-18 10:11 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 10:11 ` J. Roeleveld @ 2012-12-18 13:27 ` Nilesh Govindrajan 2012-12-18 17:09 ` Kevin Brandstatter 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 13:27 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 13:27 ` Nilesh Govindrajan @ 2012-12-18 17:09 ` Kevin Brandstatter 2012-12-18 17:14 ` Nilesh Govindrajan 0 siblings, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 17:09 UTC (permalink / raw To: gentoo-user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBAgAGBQJQ0KNXAAoJEAwpfz/ORQZCg4YH/3onXndm8ZrmMd/DhtSYYvMc hZWRBu4qwIbTapqpWPDZ7nniIfrhfCOfc6bD4MNPO0a20RmC35zAZlLkmFEUMgVf iJ/25AjLPhI2I8bnLVHkI6Cq5mcvxugK5FMirdD4B4qG9Vd+oUZEo5R/BEZll7rL 9+RuKozq8c/Zdr+MNu/jEQhPtBjHKH6/vWnznK2U7WraRv9jw6vQIoHaMNi2cxG7 vRaD03sPTy58bgHtn26l9bodITTtXYmCCwQYnKfltIraYkTtZOoOUW81NICdv66l 6Ckow8FrXTLr8zDU9LfAWLTb316cyzTRHU3uX1KXqe0RAv6r1QTZPnRYeR2ix9I= =5g1g -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 17:09 ` Kevin Brandstatter @ 2012-12-18 17:14 ` Nilesh Govindrajan 2012-12-18 17:29 ` Kevin Brandstatter 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 17:14 UTC (permalink / raw To: gentoo-user On Tuesday 18 December 2012 10:39:43 PM IST, Kevin Brandstatter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with undefined - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJQ0KNXAAoJEAwpfz/ORQZCg4YH/3onXndm8ZrmMd/DhtSYYvMc > hZWRBu4qwIbTapqpWPDZ7nniIfrhfCOfc6bD4MNPO0a20RmC35zAZlLkmFEUMgVf > iJ/25AjLPhI2I8bnLVHkI6Cq5mcvxugK5FMirdD4B4qG9Vd+oUZEo5R/BEZll7rL > 9+RuKozq8c/Zdr+MNu/jEQhPtBjHKH6/vWnznK2U7WraRv9jw6vQIoHaMNi2cxG7 > vRaD03sPTy58bgHtn26l9bodITTtXYmCCwQYnKfltIraYkTtZOoOUW81NICdv66l > 6Ckow8FrXTLr8zDU9LfAWLTb316cyzTRHU3uX1KXqe0RAv6r1QTZPnRYeR2ix9I= > =5g1g > -----END PGP SIGNATURE----- > How?? -- Nilesh Govindarajan http://nileshgr.com ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 17:14 ` Nilesh Govindrajan @ 2012-12-18 17:29 ` Kevin Brandstatter 2012-12-18 17:38 ` Nilesh Govindrajan 0 siblings, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 17:29 UTC (permalink / raw To: gentoo-user -----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----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 17:29 ` Kevin Brandstatter @ 2012-12-18 17:38 ` Nilesh Govindrajan 2012-12-18 18:09 ` Kevin Brandstatter 0 siblings, 1 reply; 17+ messages in thread From: Nilesh Govindrajan @ 2012-12-18 17:38 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] {OT} A simple routing problem 2012-12-18 17:38 ` Nilesh Govindrajan @ 2012-12-18 18:09 ` Kevin Brandstatter 2012-12-19 1:42 ` [gentoo-user] " James 0 siblings, 1 reply; 17+ messages in thread From: Kevin Brandstatter @ 2012-12-18 18:09 UTC (permalink / raw To: gentoo-user -----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----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* [gentoo-user] Re: {OT} A simple routing problem 2012-12-18 18:09 ` Kevin Brandstatter @ 2012-12-19 1:42 ` James 0 siblings, 0 replies; 17+ messages in thread From: James @ 2012-12-19 1:42 UTC (permalink / raw To: gentoo-user Kevin Brandstatter <kjbrandstatter <at> gmail.com> writes: > > 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? > I think you want the forward chain, im not sure what tools dd-wrt and You might want to research about the capabilities of OSPF. net-misc/quagga is in portage. hth, James ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2012-12-19 1:44 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-12-18 3:26 [gentoo-user] {OT} A simple routing problem Nilesh Govindrajan 2012-12-18 3:39 ` Kevin Brandstatter 2012-12-18 3:44 ` Nilesh Govindrajan 2012-12-18 3:54 ` Kevin Brandstatter 2012-12-18 4:00 ` Nilesh Govindrajan 2012-12-18 4:10 ` Kevin Brandstatter 2012-12-18 4:22 ` Nilesh Govindrajan 2012-12-18 4:56 ` Nilesh Govindrajan 2012-12-18 9:31 ` Pandu Poluan 2012-12-18 10:11 ` J. Roeleveld 2012-12-18 13:27 ` Nilesh Govindrajan 2012-12-18 17:09 ` Kevin Brandstatter 2012-12-18 17:14 ` Nilesh Govindrajan 2012-12-18 17:29 ` Kevin Brandstatter 2012-12-18 17:38 ` Nilesh Govindrajan 2012-12-18 18:09 ` Kevin Brandstatter 2012-12-19 1:42 ` [gentoo-user] " James
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox