Project

General

Profile

Actions

Feature #671

closed

squid zero pinalty hit

Added by Lulik Kurnianto almost 14 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Ermal Luçi
Category:
Captive Portal
Target version:
-
Start date:
06/18/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

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

Actions #1

Updated by Lulik Kurnianto almost 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 136

I think a feature to give more to the traffic squid BW will be very attractive

Actions #2

Updated by Chris Buechler almost 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.

Actions #3

Updated by Chris Buechler almost 9 years ago

  • Target version deleted (2.0)
Actions

Also available in: Atom PDF