From e2cd32dfea88ea6aacbb4571a75a3c153c1071c0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 5 Dec 2004 21:08:33 +0000 Subject: Update with 1.2b3 --- usr/local/www/interfaces_wan.php | 163 ++++++++++++++++++++------------------- 1 file changed, 83 insertions(+), 80 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 36498d1..6ba7c10 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -1,22 +1,22 @@ #!/usr/local/bin/php -. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -115,7 +115,7 @@ if ($_POST) { $reqdfieldsn = explode(",", "BigPond username,BigPond password"); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); } - + if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) { $input_errors[] = "A valid IP address must be specified."; } @@ -161,7 +161,7 @@ if ($_POST) { if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) { $input_errors[] = "The MTU must be between 576 and 1500 bytes."; } - + /* Wireless interface? */ if (isset($optcfg['wireless'])) { $wi_input_errors = wireless_config_post(); @@ -171,7 +171,7 @@ if ($_POST) { } if (!$input_errors) { - + unset($wancfg['ipaddr']); unset($wancfg['subnet']); unset($wancfg['gateway']); @@ -194,7 +194,7 @@ if ($_POST) { unset($config['bigpond']['authserver']); unset($config['bigpond']['authdomain']); unset($config['bigpond']['minheartbeatinterval']); - + if ($_POST['type'] == "Static") { $wancfg['ipaddr'] = $_POST['ipaddr']; $wancfg['subnet'] = $_POST['subnet']; @@ -228,13 +228,13 @@ if ($_POST) { $config['bigpond']['authdomain'] = $_POST['bigpond_authdomain']; $config['bigpond']['minheartbeatinterval'] = $_POST['bigpond_minheartbeatinterval']; } - + $wancfg['blockpriv'] = $_POST['blockpriv'] ? true : false; $wancfg['spoofmac'] = $_POST['spoofmac']; $wancfg['mtu'] = $_POST['mtu']; - + write_config(); - + $retval = 0; if (!file_exists($d_sysrebootreqd_path)) { config_lock(); @@ -409,53 +409,53 @@ function type_change(enable_change,enable_change_pptp) {
- + - + - + - + - - + - - + - + - + - + - - + - + @@ -518,42 +518,45 @@ function type_change(enable_change,enable_change_pptp) {
The bandwidth setting will define the speed of the interface for traffic shaping. - + + + + - + - + - + - + - - + - - + - - + - @@ -564,42 +567,42 @@ function type_change(enable_change,enable_change_pptp) { seconds
If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature. - + - + - + - - + - - + - + - - + - @@ -610,29 +613,29 @@ function type_change(enable_change,enable_change_pptp) { seconds
If no qualifying outgoing packets are transmitted for the specified number of seconds, the connection is brought down. An idle timeout of zero disables this feature. - + - + - + - - + - - + - + + - + - - + -
Type
General configuration
MAC address +
- This field can be used to modify ("spoof") the MAC + This field can be used to modify ("spoof") the MAC address of the WAN interface
(may be required with some cable connections)
- Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx + Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx or leave blank
MTU +
- If you enter a value in this field, then MSS clamping for - TCP connections to the value entered above minus 40 (TCP/IP - header size) will be in effect. If you leave this field blank, - an MTU of 1492 bytes for PPPoE and 1500 bytes for all other + If you enter a value in this field, then MSS clamping for + TCP connections to the value entered above minus 40 (TCP/IP + header size) will be in effect. If you leave this field blank, + an MTU of 1492 bytes for PPPoE and 1500 bytes for all other connection types will be assumed.
Static IP configuration
IP address - / + /
Gateway +
Bandwidth Management (Traffic Shaping)Bandwidth Management (Traffic Shaping)
Scheduler
Bandwidth Management (Traffic Shaping)
DHCP client configuration
Hostname
- The value in this field is sent as the DHCP client identifier - and hostname when requesting a DHCP lease. Some ISPs may require + The value in this field is sent as the DHCP client identifier + and hostname when requesting a DHCP lease. Some ISPs may require this (for client identification).
PPPoE configuration
Username +
Password +
Service name -
Hint: this field can usually be left +
+
Hint: this field can usually be left empty
Dial on demand onClick="enable_change(false)" > + onClick="enable_change(false)" > Enable Dial-On-Demand mode
This option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.
PPTP configuration
Username +
Password +
Local IP address - / + /
Remote IP address +
Dial on demand onClick="enable_change_pptp(false)" > + onClick="enable_change_pptp(false)" > Enable Dial-On-Demand mode
This option causes the interface to operate in dial-on-demand mode, allowing you to have a virtual full time connection. The interface is configured, but the actual connection of the link is delayed until qualifying outgoing traffic is detected.
BigPond Cable configuration
Username +
Password +
Authentication server
If this field is left empty, the default ("dce-server") is used.
Authentication domain
@@ -651,24 +654,24 @@ function type_change(enable_change,enable_change_pptp) { if (isset($optcfg['wireless'])) wireless_config_print(); ?> -
  > + > Block private networks
- When set, this option blocks traffic from IP addresses that + When set, this option blocks traffic from IP addresses that are reserved for private
- networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as + networks as per RFC 1918 (10/8, 172.16/12, 192.168/16) as well as loopback addresses
- (127/8). You should generally leave this option turned on, + (127/8). You should generally leave this option turned on, unless your WAN network
lies in such a private address space, too.
   
+
 
-- cgit v1.1