Two Internet Connections send port 80 on one interface and rest on another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi. 
I have 2 internetconnections (eth0 and eth2) and a local net (eth1)
as it is now I have eth1 masqueraded behind eth0 so all internet activity
is used on eth0 . But now I want port 80 to be "redirected" to eth2 in order 
to always get good speed on http.
How can I do this ?

as a matter of fact I can't get the machine to listen on both ips :(
I do 
$ route add default gw $ETH2_GW
$ route add default gw $ETH0_GW
but that really messes things up.

What decides which ip is to be used first (outbound locally)
say if I do ping www.helgon.net
what decides which ip I get?
is it the first default route in the $ route   list?
is it the first ethX device?
I'm lost.. :(
please send me some links, or even better. A working solution :)
Thanks


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux