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