diff options
author | Chris Dionissopoulos <chdio@pfsense.org> | 2005-02-09 19:25:28 +0000 |
---|---|---|
committer | Chris Dionissopoulos <chdio@pfsense.org> | 2005-02-09 19:25:28 +0000 |
commit | 86e0729f9a3cbf0e096ed98e691064e2924dc74a (patch) | |
tree | f063c4702fd2d3ca250f23cf42fe439348fb6ac9 /etc/inc | |
parent | 34865da021cb69591cc26908134b270294a36a68 (diff) | |
download | pfsense-86e0729f9a3cbf0e096ed98e691064e2924dc74a.zip pfsense-86e0729f9a3cbf0e096ed98e691064e2924dc74a.tar.gz |
Fic $gates, rule syntax errors
Diffstat (limited to 'etc/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'; |