Selective Masquerading
HI guys:
I have a DSL @ 1mb, and another one @ 256kbps
I've been reading countless hours regarding the split access / load balancing issue (most info in http://lartc.org) but for some strange reason, things don't work the way they should.
Sometimes the split access works, other times a DSL begins an ARP flood pointing all the ARP replies to the other DSL, and sometimes they just wont work.
While giving a deep thought on why I got the 2 dsl, the answer is simple: So I could have fast downloads, and fast web browsing also.
So I was thinking: is there a way to masquerade / direct all web browsing to the 256dsl, and leave the rest of the communications (higher ports) to the 1 mbps line?
Thanks
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es
Quoted 10 lines · Edgar Estrada Lopez
HI guys:
I have a DSL @ 1mb, and another one @ 256kbps
While giving a deep thought on why I got the 2 dsl, the answer is simple:
So I could have fast downloads, and fast web browsing also.So I was thinking: is there a way to masquerade / direct all web browsing to the 256dsl, and leave the rest of the communications (higher ports) to the 1 mbps line?
I'm sure you can do this either with iproute2 on its own, or if not then certainly by routing packets based on a MARK, and MARKing them in netfilter based on destination port number.
However, I have to ask - what sort of traffic are you generating which can use
a 1Mbps line for "downloads", which is not HTTP? I realise that you could
be using FTP, or rsync, however I suspect you mean p2p networking, and you should check that this really isn't using TCP port 80 - otherwise there's no way of distinguishing the two types of traffic.
Of course the other way to do it would be to use an HTTP proxy such as Squid which has a default route pointing up the 256k DSL, and the default gateway for other machines going up the 1M DSL...
Regards,
Antony.
Signature · 7 lines
Success is a lousy teacher. It seduces smart people into thinking they can't
lose.
- William H Gates III
Please reply to the list;
please don't CC me.Quoted 4 lines · Edgar Estrada Lopez
HI guys:
I have a DSL @ 1mb, and another one @ 256kbps
So I could have fast downloads, and fast web browsing also.
Have you thought of using QoS to prioritise HTTP traffic, so you get a fast response on web browsing, whilst allowing downloads to use all the bandwidth
when there isn't an HTTP request happening? That way you might achieve what
you want with just the 1Mbps DSL line.
Regards,
Antony.
Signature · 8 lines
"The problem with television is that the people must sit and keep their eyes
glued on a screen; the average American family hasn't time for it."
- Report in the New York Times, following a demonstration at the 1939 World's
Fair.
Please reply to the list;
please don't CC me.