diff options
author | Ermal <eri@pfsense.org> | 2011-07-22 17:27:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-22 17:27:51 +0000 |
commit | 8fd84f8778dde3f1c62934c1c2ae687bc5c0f51f (patch) | |
tree | e6b783221774cb0d4c4d09b6fefec20fdba76f78 /usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | |
parent | cdfd39e2b9df28910e4b339c9589ab5377a5933c (diff) | |
download | pfsense-8fd84f8778dde3f1c62934c1c2ae687bc5c0f51f.zip pfsense-8fd84f8778dde3f1c62934c1c2ae687bc5c0f51f.tar.gz |
Ticket #749. Make the rules of the traffic shaper wizard select the wan side of the interfaces to not make the intra-lan traffic classifible in this way.
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 | 8 |
1 files changed, 8 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 7ab8e69..9fdc3a3 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -451,6 +451,7 @@ function apply_all_choosen_items() { $altq_list_queues = array(); $steps = floatval($config['ezshaper']['step1']['numberofconnections']); + for ($i = 0; $i < $steps; $i++) { $tmppath = array(); @@ -1202,6 +1203,7 @@ function apply_all_choosen_items() { if( is_ipaddr($config['ezshaper']['step4']['address']) || is_alias($config['ezshaper']['step4']['address'])) { $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['descr'] = gettext("Penalty Box"); $rule['source']['any'] = TRUE; $rule['defaultqueue'] = "qOthersLow"; @@ -1221,6 +1223,7 @@ function apply_all_choosen_items() { /* create VOIP rules */ $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['descr'] = gettext("VOIP Adapter"); $rule['protocol'] = "udp"; $rule['defaultqueue'] = "qVoIP"; @@ -1235,6 +1238,7 @@ function apply_all_choosen_items() { /* create VOIP rules */ $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['descr'] = "DiffServ/Lowdelay/Upload"; $rule['protocol'] = "udp"; $rule['source']['any'] = TRUE; @@ -1251,6 +1255,7 @@ function apply_all_choosen_items() { foreach ($voiplist[$config['ezshaper']['step3']['provider']] as $voip) { $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['defaultqueue'] = 'qVoIP'; $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; @@ -1274,6 +1279,7 @@ function apply_all_choosen_items() { foreach ($p2plist[$key] as $p2pclient) { $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['defaultqueue'] = 'qP2P'; $rule['source']['any'] = TRUE; $rule['destination']['any'] = TRUE; @@ -1296,6 +1302,7 @@ function apply_all_choosen_items() { foreach ($gamesplist[$key] as $Gameclient) { $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; $rule['defaultqueue'] = 'qGames'; if ($Gameclient[1] == "tcp") $rule['ackqueue'] = 'qACK'; @@ -1321,6 +1328,7 @@ function apply_all_choosen_items() { foreach ($othersplist[$key] as $otherclient) { $rule = array(); $rule['type'] = "match"; + $rule['interface'] = "wan"; switch ($val) { case "H": $rule['defaultqueue'] = 'qOthersHigh'; /* posted value H or L */ |