From 73c38fa2bf6d78aece10ad9a78d7ef36891ce834 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 15 Nov 2004 01:52:42 +0000 Subject: Add scheduler type per interface and allow user to define overall bandwidth for the interface --- usr/local/www/interfaces_wan.php | 61 +++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 16 deletions(-) (limited to 'usr/local/www/interfaces_wan.php') diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index 7878fbb..acf733c 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -80,6 +80,7 @@ $pconfig['spoofmac'] = $wancfg['spoofmac']; $pconfig['mtu'] = $wancfg['mtu']; $pconfig['bandwidth'] = $wancfg['bandwidth']; $pconfig['bandwidthtype'] = $wancfg['bandwidthtype']; +$pconfig['schedulertype'] = $wancfg['schedulertype']; /* Wireless interface? */ if (isset($optcfg['wireless'])) { @@ -179,6 +180,7 @@ if ($_POST) { unset($wancfg['gateway']); unset($wancfg['bandwidth']); unset($wancfg['bandwidthtype']); + unset($wancfg['schedulertype']); unset($wancfg['dhcphostname']); unset($config['pppoe']['username']); unset($config['pppoe']['password']); @@ -232,7 +234,7 @@ if ($_POST) { $config['bigpond']['authdomain'] = $_POST['bigpond_authdomain']; $config['bigpond']['minheartbeatinterval'] = $_POST['bigpond_minheartbeatinterval']; } - + $wancfg['schedulertype'] = $_POST['schedulertype']; $wancfg['blockpriv'] = $_POST['blockpriv'] ? true : false; $wancfg['spoofmac'] = $_POST['spoofmac']; $wancfg['mtu'] = $_POST['mtu']; @@ -408,6 +410,7 @@ function type_change(enable_change,enable_change_pptp) { +

Interfaces: WAN

@@ -430,21 +433,6 @@ function type_change(enable_change,enable_change_pptp) { General configuration - - - Interface Bandwidth Speed - - -
The bandwidth setting will define the speed of the interface for traffic shaping. - - - MAC address @@ -492,6 +480,45 @@ function type_change(enable_change,enable_change_pptp) { + Bandwidth Management (Traffic Shaping) + + + Scheduler + + +
Select which type of queueing you would like to use + + + + Interface Bandwidth Speed + + +
The bandwidth setting will define the speed of the interface for traffic shaping. + + + + + + + DHCP client configuration @@ -620,6 +647,8 @@ function type_change(enable_change,enable_change_pptp) { seconds
Setting this to a sensible value (e.g. 60 seconds) can protect against DoS attacks. + +