The rules I had doesn't make anysense (not working). How about the
following "new" rules?
/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
Rules will be applied to the squid 2.4 stable wccp box (FreeBSD 4.2R).
Thanks!
best wishes,
Wai Chan
System Administrator, Network Technology
Hawaii Pacific University
+1 (808) 566-2423
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 01:06 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: outgoing traffic load balancing with multiple ISP
>
> I have two ISPs (two different serial links to my router). I want 50% of
> all outgoing traffic go through ISP 1 with ISP 1 provided IP address as
> source address, and the other 50% of all outgoing traffic go through ISP 2
> with ISP 2 provided IP address as source address.
>
> Will this work if I add the following ipfw rules?
>
> #forward 50% of the traffic
> /sbin/ipfw add prob 0.5 fwd 127.0.0.1 tcp from any to any 80 via fxp0
> #forward everything which is missed by the "0.5" rule
> /sbin/ipfw add prob 1 fwd 127.0.0.1 tcp from any to any 80 via fxp1
>
> I would appreciate it if someone could provide me
> comments/suggestions/corrections.
>
> Thanks!
>
> best wishes,
> Wai Chan
winmail.dat