Revision 7fdf2970
Added by Ermal LUÇI about 12 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
947 | 947 |
$_gb = @pfSense_pipe_action("pipe {$pipeup} config bw {$bwUp}Kbit/s queue 100 buckets 16"); |
948 | 948 |
$pipedown = $pipeno + 1; |
949 | 949 |
$_gb = @pfSense_pipe_action("pipe {$pipedown} config bw {$bwDown}Kbit/s queue 100 buckets 16"); |
950 |
$rules .= "add {$ruleno} pipe {$pipeup} ip from any to any MAC {$macent['mac']} any\n";
|
|
950 |
$rules .= "add {$ruleno} pipe {$pipeup} ip from any to any MAC any {$macent['mac']}\n";
|
|
951 | 951 |
$ruleno++; |
952 |
$rules .= "add {$ruleno} pipe {$pipedown} ip from any to any MAC any {$macent['mac']}\n";
|
|
952 |
$rules .= "add {$ruleno} pipe {$pipedown} ip from any to any MAC {$macent['mac']} any\n";
|
|
953 | 953 |
|
954 | 954 |
return $rules; |
955 | 955 |
} |
Also available in: Unified diff
Correct bandwidth assignment so the configuration is not reverted courtesy of ipfw(4) swapped arguments. Reported-by: http://forum.pfsense.org/index.php/topic,65069.0.html