Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 May 2001 13:44:06 -1000
From:      "Wai Chan" <waichan@hpu.edu>
To:        <freebsd-net@FreeBSD.ORG>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: outgoing traffic load balancing with multiple ISP
Message-ID:  <LNEJKGADPHKMLOFLNLFLMEEJFAAA.waichan@hpu.edu>
In-Reply-To: <LNEJKGADPHKMLOFLNLFLCEEIFAAA.waichan@hpu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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: 	owner-freebsd-net@FreeBSD.ORG
> [mailto:owner-freebsd-net@FreeBSD.ORG] 
> Sent:	Thursday, May 03, 2001 01:06 PM
> To:	freebsd-net@FreeBSD.ORG; freebsd-questions@FreeBSD.ORG
> 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

[-- Attachment #2 --]
x>"IPM.Microsoft Mail.Note1

,$#&).6p2outgoing traffic load balancing with multiple ISPq%DMGi' SMTP:WAICHAN@HPU.EDU@8*
vIV@€	LZFubD
rcpg1252`n033Och
set0 TahqPfprqP}}
 ;	o0j5e 8
vIwkd4`c;Pc`he rulI d don'@kpy h(no@wAg).  Ho`@tl	Q  "n"$?G


/sb/e f-f 
@shob h0.5 wp1. ."	p@ R  7.# # 1 80%o!"%#e2#$&')at
)#+,-)(."8#b*,*-&25*20)5RC)b>pP2Asqui(4;Pc-!x@F	BSD 4.2R7!2pks~!:<:q!`,Wp C?<e)AdmHtra2@r,t`h`	g2HawpBPi
 Uvt2+*(*) 566-2423>0;0366q`Bc@0Iq16 LbOg@)AageLcJ6s1Ji-144@;01*@oP#=p:0b7P`r!	bs$d-t@=.OpRG [2@:R?SJ]

#`0:QpU@ayDMX@#3D0*IY :0L@PMVTTpQTS;[<@i sSJVubjJWWgoC Fa	b@pF0`@]`PISP>NOJT?QKE`gFb (gbdfW!;qM;0?22m5`?Eh50%R !)``0jgb0b(bm"Im) sac)Dp;apk/l?mG?pm?pno)A>{W:-!" ?
#rE q`6"*5/63 a xp6u|geFyxax -`;Qb5"#!~'?OTj`l01;	pF0CGyrp uu`m0s PmPM]T/q]c>{?@A1 B/<LNEJKGADPHKMLOFLNLFLCEEIFAAA.waichan@hpu.edu> F F FRo	 FT9.0
 F: F< F= FR FS FvIV@vIV@8+*VPSTPRX.DLLNITA7nC:\Documents and Settings\waichan\Local Settings\Application Data\Microsoft\Outlook\outlook.pst
47/<LNEJKGADPHKMLOFLNLFLMEEJFAAA.waichan@hpu.edu>TdVeTHERULESIHADDOESNTMAKEANYSENSE(NOTWORKING)HOWABOUTTHEFOLLOWING"NEW"RULES?/SBIN/IPFW-FFLUSH/SBIN/IPFWN]

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LNEJKGADPHKMLOFLNLFLMEEJFAAA.waichan>