I am trying to use two different isp connections to load balance the request. I have tried it with ip route:
ip route replace default scope global nexthop dev ppp0 weight 1 nexthop dev ppp1 weight 1
But it doesn't work well. Nearly all requests timed out.
I am using squid 2.7. Is there any other possibility to use that?
It would be easiest to tell squid to use http cache from both ISPs and round-robin between these HTTP caches.
But here's some stuff on source routing: http://linux-ip.net/html/adv-multi-internet.html
Use
iptables -j MARK
to mark the packets based on source address, then create a new routing table in /etc/iproutes/rt_tables and add a new ruleip rule add fwmark 4 table 4 priority 10000
.