summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-06-06 05:05:20 +0000
committerBill Marquette <billm@pfsense.org>2005-06-06 05:05:20 +0000
commit468a66631d3e1baf9cb32953e0fbecc11800b48a (patch)
tree3c9bcf230c907abf6f0a8a53462cd88aa058cbc3
parente4ec999c4c5db59603387a69829e234192aa416f (diff)
downloadpfsense-468a66631d3e1baf9cb32953e0fbecc11800b48a.zip
pfsense-468a66631d3e1baf9cb32953e0fbecc11800b48a.tar.gz
Actually queue outbound pakcets
Ticket #125
-rw-r--r--etc/inc/filter.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index a906dac..4b87212 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1904,6 +1904,15 @@ function create_firewall_outgoing_rules_to_itself() {
$int = "ng0";
$ip = find_interface_ip($int);
if($ip <> "") {
+ if (isset($config['shaper']['enable']) && is_array($config['shaper']['queue'])) {
+ foreach ($config['shaper']['queue'] as $queue) {
+ /* XXX - billm: temp fix for pppoe, needs better fix */
+ if($config['interfaces'][$ifname]['ipaddr'] != "")
+ $rule .="pass out quick on {$int} all keep state tagged {$queue['name']} queue {$queue['name']} label \"let out anything from firewall host itself\"\n";
+ else
+ $rule .="pass out quick on {$int} all keep state tagged {$queue['name']} queue {$queue['name']} label \"let out anything from firewall host itself\"\n";
+ }
+ }
/* XXX - billm: temp fix for pppoe, needs better fix */
if($config['interfaces'][$ifname]['ipaddr'] != "")
$rule .="pass out quick on {$int} all keep state label \"let out anything from firewall host itself\"\n";
OpenPOWER on IntegriCloud