From 86e0729f9a3cbf0e096ed98e691064e2924dc74a Mon Sep 17 00:00:00 2001 From: Chris Dionissopoulos Date: Wed, 9 Feb 2005 19:25:28 +0000 Subject: Fic $gates, rule syntax errors --- etc/inc/lb.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/inc/lb.inc') diff --git a/etc/inc/lb.inc b/etc/inc/lb.inc index 3ffd8e6..0beb8b4 100644 --- a/etc/inc/lb.inc +++ b/etc/inc/lb.inc @@ -142,6 +142,7 @@ require_once("functions.inc"); $rules =""; $num = 1; $i=0; + $gates = count($lb['gateway']); foreach($lb['gateway'] as $tgate){ $num++; $in_num = 10000+$num; @@ -156,8 +157,8 @@ require_once("functions.inc"); .' '.$in_flow.' mac any '.arp_get_mac_by_ip($tgate['gateway']) .' in recv '.$wancfg['if'].' keep-state\n'; - $rules .='/sbin/ipfw add $out_num set 6 skipto '.$skipto - .' prob '.$prob.' '.$out_flow.' in recv '. $lancfg['if'].' keep-state\n'; + $rules .='/sbin/ipfw add $out_num set 6 prob '.$prob.' skipto '.$skipto + .' '.$out_flow.' in recv '. $lancfg['if'].' keep-state\n'; $rules .='/sbin/ipfw add $skipto set 6 fwd '.$tgate['gateway'] .' '.$out_flow.' in recv '.$lancfg['if'].'\n'; -- cgit v1.1