From fa29a6f012f7bc02baf5cdc5b66438fe9f591749 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 29 Oct 2012 08:22:17 +0000 Subject: Mark the pipe/queue with zero(unlimited) bandwidth to allow traffic on the state to flow still or new traffic matching the rule to flow. Dummynet blocks traffic not matchign apipe/flow by default. Reported-by: http://forum.pfsense.org/index.php/topic,54595.msg294734.html#msg294734 --- etc/inc/shaper.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 5d66043..8bf7e94 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -2999,6 +2999,7 @@ class dnpipe_class extends dummynet_class { return; $pfq_rule = "\npipe ". $this->GetNumber() . " config "; + $found = false; $bandwidth = $this->GetBandwidth(); if (is_array($bandwidth)) { foreach ($bandwidth as $bw) { @@ -3009,15 +3010,18 @@ class dnpipe_class extends dummynet_class { if ($bw['bwsched'] == $schedule['name']) { if (filter_get_time_based_rule_status($schedule)) { $pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale']; + $found = true; break; } } } } else - return ""; + $pfq_rule .= " bw 0"; } else $pfq_rule .= " bw ".trim($bw['bw']).$bw['bwscale']; } + if ($found == false) + $pfq_rule .= " bw 0"; } if ($this->GetQlimit()) -- cgit v1.1