diff options
author | Ermal <eri@pfsense.org> | 2012-10-29 08:22:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-10-29 08:22:17 +0000 |
commit | fa29a6f012f7bc02baf5cdc5b66438fe9f591749 (patch) | |
tree | ce3add4a8c624d69f99b3af0cb188c2ef6fdc3ed /etc/inc | |
parent | 61cf2b7ed7cfbbab57ec049032d6b953b921904d (diff) | |
download | pfsense-fa29a6f012f7bc02baf5cdc5b66438fe9f591749.zip pfsense-fa29a6f012f7bc02baf5cdc5b66438fe9f591749.tar.gz |
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
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 5 insertions, 1 deletions
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()) |