Revision ff8d44d1
Added by Renato Botelho almost 8 years ago
src/etc/inc/captiveportal.inc | ||
---|---|---|
2304 | 2304 |
$_gb = @pfSense_ipfw_pipe("pipe {$bw_down_pipeno} config bw {$bw_down}Kbit/s queue 100 buckets 16"); |
2305 | 2305 |
|
2306 | 2306 |
$rule_entry = "{$clientip}/" . (is_ipaddrv6($clientip) ? "128" : "32"); |
2307 |
$_gb = @pfSense_ipfw_table("{$cpzone}_auth_down", IP_FW_TABLE_XADD, "{$rule_entry}", $bw_down_pipeno); |
|
2308 |
|
|
2309 |
/* Add MAC address on UP rule only */ |
|
2307 | 2310 |
if (!isset($config['captiveportal'][$cpzone]['nomacfilter'])) { |
2308 | 2311 |
$rule_entry .= ",{$clientmac}"; |
2309 | 2312 |
} |
2310 | 2313 |
$_gb = @pfSense_ipfw_table("{$cpzone}_auth_up", IP_FW_TABLE_XADD, "{$rule_entry}", $bw_up_pipeno); |
2311 |
$_gb = @pfSense_ipfw_table("{$cpzone}_auth_down", IP_FW_TABLE_XADD, "{$rule_entry}", $bw_down_pipeno); |
|
2312 | 2314 |
|
2313 | 2315 |
if ($attributes['voucher']) { |
2314 | 2316 |
$attributes['session_timeout'] = $remaining_time; |
Also available in: Unified diff
Update translation files