Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Splitting web access between isp's
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Tue Jul 25, 2006 3:29 pm    Post subject: Splitting web access between isp's Reply with quote

I'm connecting to two isp's and I want to split web traffic between them. I want to use IM on the one isp and general high bandwidth applications on the other. It looks like it is possible with route, but I'm lost in the man pages ;)

Do someone have a simple working solution?
Thanks
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
Zi7
n00b
n00b


Joined: 23 Jul 2006
Posts: 43
Location: Provence

PostPosted: Tue Jul 25, 2006 10:34 pm    Post subject: Reply with quote

How do you mean to differentiate among packets?
Following the app that's created it? Following the content of the packet? Following the destination port? Following the destination address?

Whatever, i'd use an iptables rule to do that... ^^
Back to top
View user's profile Send private message
Brainfart
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2006
Posts: 123
Location: Redmond, WA, USA

PostPosted: Wed Jul 26, 2006 12:03 am    Post subject: Reply with quote

You'll probably have to go by port numbers. A random look the iptables site found this, which said:
Quote:
Specifying Protocol

The protocol can be specified with the `-p' (or `--protocol') flag. Protocol can be a number (if you know the numeric protocol values for IP) or a name for the special cases of `TCP', `UDP' or `ICMP'. Case doesn't matter, so `tcp' works as well as `TCP'.

The protocol name can be prefixed by a `!', to invert it, such as `-p ! TCP' to specify packets which are not TCP.

I don't know of a better way to do it off the top of my head...
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Wed Jul 26, 2006 7:50 am    Post subject: Reply with quote

Yeah, but how do I redirect/filter traffic to go to different interfaces?
_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
Zi7
n00b
n00b


Joined: 23 Jul 2006
Posts: 43
Location: Provence

PostPosted: Wed Jul 26, 2006 12:38 pm    Post subject: Reply with quote

You'll have to use the ROUTE target in the 'mangle' table.
Back to top
View user's profile Send private message
ivanova
Apprentice
Apprentice


Joined: 12 Apr 2004
Posts: 158
Location: South Africa

PostPosted: Wed Jul 26, 2006 9:23 pm    Post subject: Reply with quote

Zi7 wrote:
You'll have to use the ROUTE target in the 'mangle' table.


Thanks ;)

Something like this should do the trick right?
Code:
iptables -t mangle -A PREROUTING -p tcp --dport 5222 -j ROUTE --oif eth1

But I get this error
Code:
iptables v1.3.5: Unknown arg `--oif'
Try `iptables -h' or 'iptables --help' for more information.

_________________
Ladies and Gentlemen... we are floating in space.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Sat Feb 23, 2008 10:51 pm    Post subject: Reply with quote

old topic. but anyway: I'm having the same problem.
Did you solve it?
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum