summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-10 23:21:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-10 23:21:47 +0000
commit796b9b3b4f0eb43d8758d526e7c8d4393f8b0a70 (patch)
tree8b0add3babaa315395b3145210a0ddd740c4661c /usr/local/www/wizards
parentf29908ad6b3eadfd7a4cb87ad8e4745580250378 (diff)
downloadpfsense-796b9b3b4f0eb43d8758d526e7c8d4393f8b0a70.zip
pfsense-796b9b3b4f0eb43d8758d526e7c8d4393f8b0a70.tar.gz
* Whitespace cleanup
* Add missing counter strike ports * Shift default queues to 1, instead of 3
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc68
1 files changed, 35 insertions, 33 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index 18b7d21..b296cfc 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -82,15 +82,15 @@ function step2_stepsubmitphpaction() {
$config['shaper']['queue'][] = $queue;
/* WAN default queue */
- $queue = array();
- $queue['name'] = "{$upq}def";
- $queue['attachtoqueue'] = "{$upq}Root";
- $queue['associatedrule'] = 0;
+ $queue = array();
+ $queue['name'] = "{$upq}def";
+ $queue['attachtoqueue'] = "{$upq}Root";
+ $queue['associatedrule'] = 0;
$queue['defaultqueue'] = 'true';
- $queue['priority'] = 3;
+ $queue['priority'] = 1;
if ($config['shaper']['schedulertype'] == "hfsc") {
- $queue['realtime'] = "on";
- $queue['realtime3'] = "1%";
+ $queue['realtime'] = "on";
+ $queue['realtime3'] = "1%";
$queue['bandwidth'] = 1;
$queue['bandwidthtype'] = '%';
$queue['qlimit'] = 500;
@@ -103,15 +103,15 @@ function step2_stepsubmitphpaction() {
/* LAN default queue */
- $queue = array();
- $queue['name'] = "{$downq}def";
- $queue['priority'] = 3;
- $queue['attachtoqueue'] = "{$downq}Root";
- $queue['associatedrule'] = 0;
+ $queue = array();
+ $queue['name'] = "{$downq}def";
+ $queue['priority'] = 1;
+ $queue['attachtoqueue'] = "{$downq}Root";
+ $queue['associatedrule'] = 0;
$queue['defaultqueue'] = 'true';
if ($config['shaper']['schedulertype'] == "hfsc") {
- $queue['realtime'] = "on";
- $queue['realtime3'] = "1%";
+ $queue['realtime'] = "on";
+ $queue['realtime3'] = "1%";
$queue['bandwidth'] = 1;
$queue['bandwidthtype'] = '%';
$queue['qlimit'] = 500;
@@ -120,18 +120,18 @@ function step2_stepsubmitphpaction() {
$queue['bandwidth'] = 6;
$queue['bandwidthtype'] = 'Kb';
}
- $config['shaper']['queue'][] = $queue;
+ $config['shaper']['queue'][] = $queue;
/* WAN ack queue */
- $queue = array();
- $queue['name'] = "{$upq}acks";
- $queue['ack'] = TRUE;
- $queue['attachtoqueue'] = "{$upq}Root";
- $queue['associatedrule'] = 0;
- $queue['priority'] = 7;
+ $queue = array();
+ $queue['name'] = "{$upq}acks";
+ $queue['ack'] = TRUE;
+ $queue['attachtoqueue'] = "{$upq}Root";
+ $queue['associatedrule'] = 0;
+ $queue['priority'] = 7;
if ($config['shaper']['schedulertype'] == "hfsc") {
- $queue['realtime'] = "on";
- $queue['realtime3'] = "10%";
+ $queue['realtime'] = "on";
+ $queue['realtime3'] = "10%";
$queue['bandwidth'] = 25;
$queue['bandwidthtype'] = '%';
} elseif ($config['shaper']['schedulertype'] == "cbq") {
@@ -139,18 +139,18 @@ function step2_stepsubmitphpaction() {
$queue['bandwidth'] = 6;
$queue['bandwidthtype'] = 'Kb';
}
- $config['shaper']['queue'][] = $queue;
- $queue = array();
+ $config['shaper']['queue'][] = $queue;
+ $queue = array();
/* LAN ack queue */
- $queue['name'] = "{$downq}acks";
+ $queue['name'] = "{$downq}acks";
$queue['ack'] = TRUE;
- $queue['attachtoqueue'] = "{$downq}Root";
- $queue['associatedrule'] = 0;
- $queue['priority'] = 7;
+ $queue['attachtoqueue'] = "{$downq}Root";
+ $queue['associatedrule'] = 0;
+ $queue['priority'] = 7;
if ($config['shaper']['schedulertype'] == "hfsc") {
- $queue['realtime'] = "on";
- $queue['realtime3'] = "10%";
+ $queue['realtime'] = "on";
+ $queue['realtime3'] = "10%";
$queue['bandwidth'] = 25;
$queue['bandwidthtype'] = '%';
} elseif ($config['shaper']['schedulertype'] == "cbq") {
@@ -525,7 +525,9 @@ function step5_stepsubmitphpaction() {
$gamesplist[] = array('Masterserver', 'udp', '27010', '27010', 'both');
$gamesplist[] = array('Mod-Server', 'udp', '27011', '27011', 'both');
$gamesplist[] = array('Chat', 'udp', '27012', '27012', 'both');
- $gamesplist[] = array('HL-Serverport ', 'udp', '27015', '27015', 'both');
+ $gamesplist[] = array('HL-Serverport1', 'udp', '27013', '27013', 'both');
+ $gamesplist[] = array('HL-Serverport2', 'udp', '27014', '27014', 'both');
+ $gamesplist[] = array('HL-Serverport', 'udp', '27015', '27015', 'both');
}
if($_POST['deltaforce'] != "") {
@@ -1074,7 +1076,7 @@ function step7_stepsubmitphpaction() {
/* reset rrd queues */
system("rm -f /var/db/rrd/wan-queues.rrd");
enable_rrd_graphing();
-
+
/* And we're no longer dirty! */
unlink_if_exists($d_shaperconfdirty_path);
OpenPOWER on IntegriCloud