View previous topic :: View next topic |
Author |
Message |
ivanova Apprentice
Joined: 12 Apr 2004 Posts: 158 Location: South Africa
|
Posted: Tue Jul 25, 2006 3:29 pm Post subject: Splitting web access between isp's |
|
|
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 |
|
|
Zi7 n00b
Joined: 23 Jul 2006 Posts: 43 Location: Provence
|
Posted: Tue Jul 25, 2006 10:34 pm Post subject: |
|
|
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 |
|
|
Brainfart Tux's lil' helper
Joined: 14 Mar 2006 Posts: 123 Location: Redmond, WA, USA
|
Posted: Wed Jul 26, 2006 12:03 am Post subject: |
|
|
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 |
|
|
ivanova Apprentice
Joined: 12 Apr 2004 Posts: 158 Location: South Africa
|
Posted: Wed Jul 26, 2006 7:50 am Post subject: |
|
|
Yeah, but how do I redirect/filter traffic to go to different interfaces? _________________ Ladies and Gentlemen... we are floating in space. |
|
Back to top |
|
|
Zi7 n00b
Joined: 23 Jul 2006 Posts: 43 Location: Provence
|
|
Back to top |
|
|
ivanova Apprentice
Joined: 12 Apr 2004 Posts: 158 Location: South Africa
|
Posted: Wed Jul 26, 2006 9:23 pm Post subject: |
|
|
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 |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
|
|