diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-06 23:11:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-06 23:11:40 +0000 |
commit | c15288dc169ff0d607f2de8eb58758cab95e00ef (patch) | |
tree | e8e63ebd5d383b880f8ca5f035397eae06d73e7f /usr/local/www | |
parent | f071f0c294ae82d6eee4395b99ea0596dbb3dcfc (diff) | |
download | pfsense-c15288dc169ff0d607f2de8eb58758cab95e00ef.zip pfsense-c15288dc169ff0d607f2de8eb58758cab95e00ef.tar.gz |
Correctly install the providers rules
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml index 09683f2..8bb1d4d 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -353,32 +353,38 @@ $queue['bandwidth'] = "0"; $queue['bandwidthtype'] = "Kb"; $queue['attachtoqueue'] = "qLANRoot"; - $config['shaper']['queue'][] = $queue; + $config['shaper']['queue'][] = $queue; + + } - /* create VOIP rules */ - $rule = array(); - $rule['descr'] = "DiffServ/Lowdelay/Upload"; - $rule['inqueue'] = "qVOIPDown"; - $rule['outqueue'] = "qVOIPUp"; - $rule['interface'] = "lan"; - $rule['source']['network'] = 'lan'; - $rule['destination']['any'] = TRUE; - $rule['iptos'] = "lowdelay"; - $config['shaper']['rule'][] = $rule; - - $rule = array(); - $rule['descr'] = "DiffServ/Lowdelay/Download"; - $rule['inqueue'] = "qVOIPUp"; - $rule['outqueue'] = "qVOIPDown"; - $rule['interface'] = "wan"; - $rule['source']['any'] = TRUE; - $rule['destination']['network'] = 'lan'; - $rule['iptos'] = "lowdelay"; - $config['shaper']['rule'][] = $rule; + $voiplist[] = array(); + + if( $_POST['provider'] == "generic") { + + /* create VOIP rules */ + $rule = array(); + $rule['descr'] = "DiffServ/Lowdelay/Upload"; + $rule['inqueue'] = "qVOIPDown"; + $rule['outqueue'] = "qVOIPUp"; + $rule['interface'] = "lan"; + $rule['source']['network'] = 'lan'; + $rule['destination']['any'] = TRUE; + $rule['iptos'] = "lowdelay"; + $config['shaper']['rule'][] = $rule; + + $rule = array(); + $rule['descr'] = "DiffServ/Lowdelay/Download"; + $rule['inqueue'] = "qVOIPUp"; + $rule['outqueue'] = "qVOIPDown"; + $rule['interface'] = "wan"; + $rule['source']['any'] = TRUE; + $rule['destination']['network'] = 'lan'; + $rule['iptos'] = "lowdelay"; + $config['shaper']['rule'][] = $rule; } - + /* setup vonage rule */ - if( $_POST['vonage'] != "") + if( $_POST['provider'] == "vonage") $voiplist[] = array('Vonage','udp','5060','5060','both'); /* Set up/down games as higher weight */ |