diff options
author | Ermal <eri@pfsense.org> | 2011-02-11 17:32:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-02-11 17:32:10 +0000 |
commit | b3205cc39e7b418eebbe5e97dc85261c1c2caf09 (patch) | |
tree | 8aabb544dc4b819d054b110e91a69c56bbc0b388 /usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | |
parent | a391d0ab1255b11f6f2d1778423fe54e8fc9258b (diff) | |
download | pfsense-b3205cc39e7b418eebbe5e97dc85261c1c2caf09.zip pfsense-b3205cc39e7b418eebbe5e97dc85261c1c2caf09.tar.gz |
Convert the shapers to the match action so the generated rules do not impact the filtering policy implemented.
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index a5de47e..ab22b93 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -1178,6 +1178,7 @@ function apply_all_choosen_items() { if ($penalty) { if( is_ipaddr($config['ezshaper']['step4']['address']) || is_alias($config['ezshaper']['step4']['address'])) { $rule = array(); + $rule['type'] = "match"; $rule['descr'] = gettext("Penalty Box"); $rule['direction'] = "out"; $rule['source']['any'] = TRUE; @@ -1197,6 +1198,7 @@ function apply_all_choosen_items() { if( is_ipaddr($config['ezshaper']['step3']['address']) || is_alias($config['ezshaper']['step3']['address'])) { /* create VOIP rules */ $rule = array(); + $rule['type'] = "match"; $rule['descr'] = gettext("VOIP Adapter"); $rule['direction'] = "out"; $rule['protocol'] = "udp"; @@ -1211,6 +1213,7 @@ function apply_all_choosen_items() { } elseif( $config['ezshaper']['step3']['provider'] == "Generic" ) { /* create VOIP rules */ $rule = array(); + $rule['type'] = "match"; $rule['descr'] = "DiffServ/Lowdelay/Upload"; $rule['direction'] = "out"; $rule['protocol'] = "udp"; @@ -1227,6 +1230,7 @@ function apply_all_choosen_items() { /* loop through voiplist[] */ foreach ($voiplist[$config['ezshaper']['step3']['provider']] as $voip) { $rule = array(); + $rule['type'] = "match"; $rule['defaultqueue'] = 'qVoIP'; $rule['direction'] = "out"; $rule['source']['any'] = TRUE; @@ -1250,6 +1254,7 @@ function apply_all_choosen_items() { continue; foreach ($p2plist[$key] as $p2pclient) { $rule = array(); + $rule['type'] = "match"; $rule['defaultqueue'] = 'qP2P'; $rule['direction'] = "out"; $rule['source']['any'] = TRUE; @@ -1272,6 +1277,7 @@ function apply_all_choosen_items() { continue; foreach ($gamesplist[$key] as $Gameclient) { $rule = array(); + $rule['type'] = "match"; $rule['defaultqueue'] = 'qGames'; if ($Gameclient[1] == "tcp") $rule['ackqueue'] = 'qACK'; @@ -1297,6 +1303,7 @@ function apply_all_choosen_items() { continue; foreach ($othersplist[$key] as $otherclient) { $rule = array(); + $rule['type'] = "match"; switch ($val) { case "H": $rule['defaultqueue'] = 'qOthersHigh'; /* posted value H or L */ |