diff options
Diffstat (limited to 'etc/inc/lb.inc')
-rw-r--r-- | etc/inc/lb.inc | 5 |
1 files changed, 3 insertions, 2 deletions
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'; |