Gentoo Archives: gentoo-user

From: Kevin Brandstatter <kjbrandstatter@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] {OT} A simple routing problem
Date: Tue, 18 Dec 2012 17:31:12
Message-Id: 50D0A805.1090207@gmail.com
In Reply to: Re: [gentoo-user] {OT} A simple routing problem by Nilesh Govindrajan
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 12/18/2012 09:14 AM, Nilesh Govindrajan wrote:
5 > On Tuesday 18 December 2012 10:39:43 PM IST, Kevin Brandstatter
6 > wrote: On 12/18/2012 05:27 AM, Nilesh Govindrajan wrote:
7 >>>> On Tuesday 18 December 2012 03:41:44 PM IST, J. Roeleveld
8 >>>> wrote:
9 >>>>> On Tue, December 18, 2012 04:44, Nilesh Govindrajan wrote:
10 >>>>>
11 >>>>> <SNIP>
12 >>>>>
13 >>>>>> Actually my fiber connection has a smaller limit than the
14 >>>>>> ADSL connection. I am trying to use the fiber connection
15 >>>>>> for all activities except some torrent downloading for
16 >>>>>> which I want to use my ADSL connection. Once I'm able to
17 >>>>>> route through the ADSL gateway, it would be easy for me
18 >>>>>> to setup another ip on eth0 on my machine on which
19 >>>>>> transmission could listen. All traffic on that ip would
20 >>>>>> be routed through ADSL and otherwise the fiber.
21 >>>>>
22 >>>>> Nilesh,
23 >>>>>
24 >>>>> I read that you managed to fix it, but for completenes and,
25 >>>>> if applicable, a different solution would be a router with
26 >>>>> 2 or more WAN-ports that can do the routing for you. Added
27 >>>>> benefit there would be that if the fiber connection dies,
28 >>>>> it would be able to automatically route everything through
29 >>>>> the ADSL.
30 >>>>>
31 >>>>> -- Joost
32 >>>>>
33 >>>>>
34 >>>>
35 >>>> Yeah that solution is always there, but I'm not going for
36 >>>> that since I'm evaluating the fiber connection (a new ISP in
37 >>>> my locality). Won't need the ADSL may be after a month or so
38 >>>> when I'll have unlimited plan on fiber.
39 >>>>
40 >>>> @Pandu, or may be the DSL ISP was down yesterday when I was
41 >>>> trying.
42 >>>>
43 >>>> The problem is not exactly fixed yet, although I'm able to
44 >>>> add static routes on the DDWRT router using route command
45 >>>> (and it is working), there's no way to route all traffic from
46 >>>> a source via the other router. It doesn't have iptables ROUTE
47 >>>> target neither iproute2 support.. is there some other method
48 >>>> do to this using iptables?
49 >>>>
50 >>>> The whole problem would be solved if I could add routes on my
51 >>>> local machine, but that doesn't seem to work. It always goes
52 >>>> via fiber which is the default route.
53 >>>>
54 >>>> The final solution to this problem would be putting in a
55 >>>> Linux machine there. I'm trying to build Gentoo for the
56 >>>> Raspberry Pi which can be used for this task, but stuck at
57 >>>> Python since it won't cross compile. Anyway that's another
58 >>>> topic.
59 >>>>
60 >>>> -- Nilesh Govindarajan http://nileshgr.com
61 >>>>
62 > you actually can add routes on a local machine. the real trick
63 > would be to have them pushed from the dd-wrt box so that they dont
64 > have to be manually set each time
65 >
66 > -Kevin
67 >>
68 >
69 > How??
70 >
71 > -- Nilesh Govindarajan http://nileshgr.com
72 >
73
74 with the route add command.
75 obviously not as clean as an iptables forward rule which is also an option
76 -----BEGIN PGP SIGNATURE-----
77 Version: GnuPG v1.4.11 (GNU/Linux)
78 Comment: Using GnuPG with undefined - http://www.enigmail.net/
79
80 iQEcBAEBAgAGBQJQ0KgFAAoJEAwpfz/ORQZCYDwH/0lZMsp+Ncr2kO5iVbuX5Oje
81 3PUuelWA3IxhF7xmRkNoyMZr+A5QGGWajp7JHPHSSJ/k+Iv7h3xYDABgRwm3tSaP
82 S0tM0VwFVLXHukhUo8vWFOqU6vmCrTuhNtiTYehFYXXS2pzc07kG+b27aH1RSKsD
83 6zrha22EbaNe7c4dtdVY4rQ/GtPbpiDjAjvQev0nEreP4uLtwWJmx6V6onlGObGi
84 0v6TVs9dB7fXQh2z5XaYt4BQ1ORqzi0o2ocKTOURJd23kQAXRDfI96+xjG8Bro77
85 AcaxjXq8bP/W8mdDqFL3w44CF7QDca3uXKAOlGC1Qbm9XVmkETpCQrlzL8aKM0k=
86 =oIGG
87 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] {OT} A simple routing problem Nilesh Govindrajan <me@××××××××.com>