Feature #671
closedsquid zero pinalty hit
0%
Description
Dear Ermal,
Can you help me to make the bandwidth of the limiter in order to bypass traffic captiveportal who came out of the squid?
Berkikut these steps have been tried, but no effect
(/usr/local/captiveportal/index.php on line 417)
if ($peruserbw && !empty($bw_down) && is_numeric($bw_down)) {
mwexec("/sbin/ipfw pipe 30002 config bw 2Mbit/s");
$bw_down_pipeno = $ruleno + 20001;
//$bw_down /= 1000; // Scale to Kbit/s
mwexec("/sbin/ipfw pipe {$bw_down_pipeno} config bw {$bw_down}Kbit/s queue 100");
if (!isset($config['captiveportal']['nomacfilter'])) {
mwexec("/sbin/ipfw table 2 add {$clientip} mac {$clientmac} {$bw_down_pipeno} not iptos reliability");
mwexec("/sbin/ipfw add pipe 30002 all from any to {$clientip} mac {$clientmac} proto TCP iptos reliability");
} else {
mwexec("/sbin/ipfw table 2 add {$clientip} {$bw_down_pipeno} not iptos reliability");
mwexec("/sbin/ipfw add pipe 30002 all from any to {$clientip} proto TCP iptos reliability");
}
} else {
if (!isset($config['captiveportal']['nomacfilter']))
mwexec("/sbin/ipfw table 2 add {$clientip} mac {$clientmac}");
else
mwexec("/sbin/ipfw table 2 add {$clientip}");
}
Here is a code that is added to the squid:
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136
I think a feature to give more to the traffic squid BW will be very attractive
Updated by Lulik Kurnianto over 14 years ago
Lulik Kurnianto wrote:
Dear Ermal,
Can you help me to make the bandwidth of the captiveportal BW limiter in order to bypass traffic who came out of the squid (cache_hit)?
Berkikut these steps have been tried, but no effect
(/usr/local/captiveportal/index.php on line 417)if ($peruserbw && !empty($bw_down) && is_numeric($bw_down)) {
mwexec("/sbin/ipfw pipe 30002 config bw 2Mbit/s");
$bw_down_pipeno = $ruleno + 20001;
//$bw_down /= 1000; // Scale to Kbit/s
mwexec("/sbin/ipfw pipe {$bw_down_pipeno} config bw {$bw_down}Kbit/s queue 100");
if (!isset($config['captiveportal']['nomacfilter'])) {
mwexec("/sbin/ipfw table 2 add {$clientip} mac {$clientmac} {$bw_down_pipeno} not iptos reliability");
mwexec("/sbin/ipfw add pipe 30002 all from any to {$clientip} mac {$clientmac} proto TCP iptos reliability");
} else {
mwexec("/sbin/ipfw table 2 add {$clientip} {$bw_down_pipeno} not iptos reliability");
mwexec("/sbin/ipfw add pipe 30002 all from any to {$clientip} proto TCP iptos reliability");
}
} else {
if (!isset($config['captiveportal']['nomacfilter']))
mwexec("/sbin/ipfw table 2 add {$clientip} mac {$clientmac}");
else
mwexec("/sbin/ipfw table 2 add {$clientip}");
}Here is a code that is added to the squid:
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136I think a feature to give more to the traffic squid BW will be very attractive
Updated by Chris Buechler over 14 years ago
- Status changed from New to Rejected
This is not a legit bug report or feature request, it's a support/consulting request. If you would like our personal assistance accomplishing this, we'll gladly do it under our commercial support. Otherwise you can post to the forum.