Networking Forums

Networking Forums > Computer Networking > Linux Networking > multiple internet connections

Reply
Thread Tools Display Modes

multiple internet connections

 
 
Matt Kowalczyk
Guest
Posts: n/a

 
      03-15-2006, 05:33 AM
Hello,

I have two network interfaces defined (eth0 - wire, and ath0 - wireless). I
would like to setup some sort of iptable rules in which all my bittorrent
traffic is redirected through my wireless connection (ath0).

I have searched the Internet for a possible solution and everything I looked at
looked extremely complicated. Can someone who is more familiar with networking
explain to me what is required for me to accomplish my goal?

Where does port forwarding come into play? And masquerading? All this is very
confusing to me, yet what I want to accomplish seems rather simple. Overall, I
hope to learn how I can manage my Internet connections to balance the traffic
that I am generating. Any help would be very appreciated.

_M@
 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      03-15-2006, 06:57 PM
On Tue, 14 Mar 2006, in the Usenet newsgroup comp.os.linux.networking, in
article <1Y-dnfED_525KIrZRVn-(E-Mail Removed)>, Matt Kowalczyk wrote:

>I have two network interfaces defined (eth0 - wire, and ath0 - wireless). I
>would like to setup some sort of iptable rules in which all my bittorrent
>traffic is redirected through my wireless connection (ath0).


Not quite enough information - do the two links lead to the same place, such
as another computer on your LAN, or to the world at large? This would be
covered by the Adv-Routing-HOWTO

>I have searched the Internet for a possible solution and everything I looked
>at looked extremely complicated.


Yes

>Where does port forwarding come into play? And masquerading? All this is
>very confusing to me, yet what I want to accomplish seems rather simple.


I suspect you are missing some basic concepts, but I'm not exactly sure
of what.

>Overall, I hope to learn how I can manage my Internet connections to
>balance the traffic that I am generating. Any help would be very
>appreciated.


I'd suggest starting by at least scanning through the various networking
HOWTOs. Your use of the word "balance" suggests you want to send some
traffic from "A" to "B" via one link - perhaps via one ISP, and other
traffic from the same "A" to "B" via a different link. That's "traffic
shaping" as covered in the Adv-Routing-HOWTO. When you are trying to
use the two links to increase bandwidth between the same hosts, things
get confusing because the two links might lead to the same computers,
but not to the same IP addresses.

Old guy

 
Reply With Quote
 
Matt Kowalczyk
Guest
Posts: n/a

 
      03-15-2006, 07:10 PM
Moe Trin wrote:
> On Tue, 14 Mar 2006, in the Usenet newsgroup comp.os.linux.networking, in
> article <1Y-dnfED_525KIrZRVn-(E-Mail Removed)>, Matt Kowalczyk wrote:
>
>
>>I have two network interfaces defined (eth0 - wire, and ath0 - wireless). I
>>would like to setup some sort of iptable rules in which all my bittorrent
>>traffic is redirected through my wireless connection (ath0).

>
>
> Not quite enough information - do the two links lead to the same place, such
> as another computer on your LAN, or to the world at large? This would be
> covered by the Adv-Routing-HOWTO
>


eth0 and ath0 are both connected to different routers. Each router is then
connected to the internet.

>
>>I have searched the Internet for a possible solution and everything I looked
>>at looked extremely complicated.

>
>
> Yes
>
>
>>Where does port forwarding come into play? And masquerading? All this is
>>very confusing to me, yet what I want to accomplish seems rather simple.

>
>
> I suspect you are missing some basic concepts, but I'm not exactly sure
> of what.
>
>
>>Overall, I hope to learn how I can manage my Internet connections to
>>balance the traffic that I am generating. Any help would be very
>>appreciated.

>
>
> I'd suggest starting by at least scanning through the various networking
> HOWTOs. Your use of the word "balance" suggests you want to send some
> traffic from "A" to "B" via one link - perhaps via one ISP, and other
> traffic from the same "A" to "B" via a different link. That's "traffic
> shaping" as covered in the Adv-Routing-HOWTO. When you are trying to
> use the two links to increase bandwidth between the same hosts, things
> get confusing because the two links might lead to the same computers,
> but not to the same IP addresses.
>
> Old guy
>


Your assumptions are correct. I would want to accomplish something like this:
All my web traffic, ssh traffic, etc go through eth0 and everything else
(bittorrent for example) go through ath0. I will look into traffic shaping to
see if I can understad how it will solve my problem.

_M@
 
Reply With Quote
 
Captain Dondo
Guest
Posts: n/a

 
      03-16-2006, 02:38 AM
On Wed, 15 Mar 2006 12:10:37 -0800, Matt Kowalczyk wrote:

>
> eth0 and ath0 are both connected to different routers. Each router is then
> connected to the internet.


Are the routers connected to the same ISP? Or 2 different ISPs?

>
> Your assumptions are correct. I would want to accomplish something like this:
> All my web traffic, ssh traffic, etc go through eth0 and everything else
> (bittorrent for example) go through ath0. I will look into traffic shaping to
> see if I can understad how it will solve my problem.


I'm not sure if you couldn't achieve something like that with iptables....
It's been a few years, but ISTR doing something similar to route specific
ports out different interfaces.... Worth looking into as well....


--
o__
,>/'_ o__
(_)\(_) ,>/'_ o__
Yan Seiner, PE (_)\(_) ,>/'_ o__
Certified Personal Trainer (_)\(_) ,>/'_ o__
Licensed Professional Engineer (_)\(_) ,>/'_
Who says engineers have to be pencil necked geeks? (_)\(_)

 
Reply With Quote
 
Matt Kowalczyk
Guest
Posts: n/a

 
      03-16-2006, 03:24 PM
Captain Dondo wrote:
> On Wed, 15 Mar 2006 12:10:37 -0800, Matt Kowalczyk wrote:
>
>
>>eth0 and ath0 are both connected to different routers. Each router is then
>>connected to the internet.

>
>
> Are the routers connected to the same ISP? Or 2 different ISPs?
>


Different.

>
>>Your assumptions are correct. I would want to accomplish something like this:
>>All my web traffic, ssh traffic, etc go through eth0 and everything else
>>(bittorrent for example) go through ath0. I will look into traffic shaping to
>>see if I can understad how it will solve my problem.

>
>
> I'm not sure if you couldn't achieve something like that with iptables....
> It's been a few years, but ISTR doing something similar to route specific
> ports out different interfaces.... Worth looking into as well....
>
>


Thanks for the additional resource.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      03-16-2006, 05:55 PM
Matt Kowalczyk <(E-Mail Removed)> writes:

>Captain Dondo wrote:
>> On Wed, 15 Mar 2006 12:10:37 -0800, Matt Kowalczyk wrote:
>>
>>
>>>eth0 and ath0 are both connected to different routers. Each router is then
>>>connected to the internet.

>>
>>
>> Are the routers connected to the same ISP? Or 2 different ISPs?
>>


>Different.


>>
>>>Your assumptions are correct. I would want to accomplish something like this:
>>>All my web traffic, ssh traffic, etc go through eth0 and everything else
>>>(bittorrent for example) go through ath0. I will look into traffic shaping to


What is web traffic as opposed to "everything else"? How is the system
supposed to know that packet x contains "web traffic" rather than
"everything else"?


>>>see if I can understad how it will solve my problem.

>>
>>
>> I'm not sure if you couldn't achieve something like that with iptables....
>> It's been a few years, but ISTR doing something similar to route specific
>> ports out different interfaces.... Worth looking into as well....
>>
>>


>Thanks for the additional resource.


The newest routing software (ip) I believe can do source port based
routing, but I have never done so.

 
Reply With Quote
 
Matt Kowalczyk
Guest
Posts: n/a

 
      03-20-2006, 10:00 PM
Unruh wrote:
> Matt Kowalczyk <(E-Mail Removed)> writes:
>
>
>>Captain Dondo wrote:
>>
>>>On Wed, 15 Mar 2006 12:10:37 -0800, Matt Kowalczyk wrote:
>>>
>>>
>>>
>>>>eth0 and ath0 are both connected to different routers. Each router is then
>>>>connected to the internet.
>>>
>>>
>>>Are the routers connected to the same ISP? Or 2 different ISPs?
>>>

>
>
>>Different.

>
>
>>>>Your assumptions are correct. I would want to accomplish something like this:
>>>>All my web traffic, ssh traffic, etc go through eth0 and everything else
>>>>(bittorrent for example) go through ath0. I will look into traffic shaping to

>
>
> What is web traffic as opposed to "everything else"? How is the system
> supposed to know that packet x contains "web traffic" rather than
> "everything else"?
>


By the destination port. web traffic would be 80, ssh would be 22, etc. If I
make a request to http://www.google.com:80 I would want eth0 to take that
request. However, if I am using bittorrent which uses ports 6881 for example, I
would want ath0 to handle the traffic.

>
>
>>>>see if I can understad how it will solve my problem.
>>>
>>>
>>>I'm not sure if you couldn't achieve something like that with iptables....
>>> It's been a few years, but ISTR doing something similar to route specific
>>>ports out different interfaces.... Worth looking into as well....
>>>
>>>

>
>
>>Thanks for the additional resource.

>
>
> The newest routing software (ip) I believe can do source port based
> routing, but I have never done so.
>


Is that what I need to setup to accomplish my goals?
 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      03-21-2006, 01:05 PM
> Is that what I need to setup to accomplish my goals?

<snip>

Just a thought, did you try the load balancing part in
Linux-Advanced-Routing? Though, traffic shaping will do the trick for
you.


--
Raqueeb Hassan
Bangladesh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Internet connections David Brown Linux Networking 4 08-30-2011 07:17 PM
Combining Multiple Internet Connections Clviper Windows Networking 4 07-11-2005 04:19 PM
Multiple Internet Connections - NOT shared Pete Mackey Windows Networking 3 04-15-2004 09:34 PM
How To Use Multiple Internet Connections =?Utf-8?B?bXNwbGl0dA==?= Windows Networking 8 03-02-2004 02:45 PM
multiple internet connections Paul Home Networking 5 02-28-2004 10:59 PM



1 2 3 4 5 6 7 8 9 10 11