Date: Fri, 4 May 2001 08:27:57 -1000 From: "Wai Chan" <waichan@hpu.edu> To: "Mike E. Matsnev" <mike@po.cs.msu.su>, "Babak Farrokhi" <farrokhi@planet.co.ir> Cc: <freebsd-questions@FreeBSD.ORG>, <freebsd-net@FreeBSD.ORG> Subject: RE: outgoing traffic load balancing with multiple ISP Message-ID: <LNEJKGADPHKMLOFLNLFLIEGKFAAA.waichan@hpu.edu> In-Reply-To: <20010504173202.A61313@balrog.rt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
I want load balancing on ISP1 and ISP2 (http traffic only for now). I don't want all the http traffic go through ISP1 (nor ISP2). I want: 50% http traffic go through ISP1 + 50% http traffic go through ISP2 --------------------------------------- 100% http traffic I saw ipfw has forward feature, so I am wondering the following rules can do the trick or not. /sbin/ipfw -f flush /sbin/ipfw add prob 0.5 fwd isp1.ip.address all from 127.0.0.1 8080 to any /sbin/ipfw add prob 1 fwd isp2.ip.address all from 127.0.0.1 8080 to any /sbin/ipfw add allow tcp from isp1.ip.address to any /sbin/ipfw add allow tcp from isp2.ip.address to any /sbin/ipfw add fwd 127.0.0.1,8080 tcp from any to any 80 /sbin/ipfw add allow all from any to any BTW, I am using Squid 2.4 stable WCCP (similar to transparent proxy), and you are right, I only want to deal with http traffic for now. I want to apply these ipfw rules to the Squid box, but just don't know these ipfw rules and the thought is right or not. Please provide advice/suggestion/.... Thanks! best wishes, Wai Chan -----Original Message----- From: owner-freebsd-net@FreeBSD.ORG [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Mike E. Matsnev Sent: Friday, May 04, 2001 03:32 AM To: Wai Chan Cc: freebsd-net@FreeBSD.ORG; freebsd-questions@FreeBSD.ORG Subject: Re: outgoing traffic load balancing with multiple ISP On Thu, May 03, 2001 at 03:26:18PM -1000, Wai Chan wrote: > We don't want to leave ISP 1's pipe empty. If the outgoing traffic is using > the IP provided by ISP 1, then the returned traffic will be using ISP 1 > provided pipe. It applies to ISP 2 also. That's why I am trying to force > half of the traffic (http) use ISP 1 provided IP, and the other half use ISP > 2 provided IP. This can be solved by using a transparent proxy for http, that will use source IPs provided by ISP1. /Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LNEJKGADPHKMLOFLNLFLIEGKFAAA.waichan>