Hello all,
I would like to ask for verification & inclusion patch for traffic shaper.
While I've managed to set up some small squid on m0n0 I've discovered that
all traffic to/from LAN IF is passed by without queuing by traffic shaper.
This is done by adding two rules allowing all traffic (at any ports) to pass
to/from LAN IF without further shaping. In comments in shaper.inc file, I've
read that this is 'antiblock' rule for WebGUI. So my proposition is to
replace in /etc/inc/shaper.inc:
line 135: $shaperrules = "add $rulei set 4 pass all from $lanip to any\n";
$rulei++;
line 136: $shaperrules .= "add $rulei set 4 pass all from any to $lanip\n";
$rulei++;
With following:
$shaperrules = "add $rulei set 4 pass all from $lanip" .
isset($config['webgui']['port']) ? $config['webgui']['port'] : 80 . " to
any\n"; $rulei++;
$shaperrules .= "add $rulei set 4 pass all from any to $lanip dst-port " .
isset($config['webgui']['port']) ? $config['webgui']['port'] : 80 . "\n";
$rulei++;
This way users still wont be able to block out themselves, and other traffic
will be shaped if required.
Best regards
Patryk Romatowski. |