diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php deleted file mode 100755 index 838440ffa8..0000000000 --- a/usr/local/www/interfaces_lan.php +++ /dev/null @@ -1,235 +0,0 @@ -. - 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 - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -##|+PRIV -##|*IDENT=page-interfaces-lan -##|*NAME=Interfaces: LAN page -##|*DESCR=Allow access to the 'Interfaces: LAN' page. -##|*MATCH=interfaces_lan.php* -##|-PRIV - - -require("guiconfig.inc"); - -$lancfg = &$config['interfaces']['lan']; - -$pconfig['ipaddr'] = $lancfg['ipaddr']; -$pconfig['subnet'] = $lancfg['subnet']; - -$pconfig['disableftpproxy'] = isset($lancfg['disableftpproxy']); - -/* Wireless interface? */ -if (isset($lancfg['wireless'])) { - require("interfaces_wlan.inc"); - wireless_config_init($lancfg); -} - -if ($_POST) { - - unset($input_errors); - $pconfig = $_POST; - $changedesc = "LAN Interface: "; - - /* input validation */ - $reqdfields = explode(" ", "ipaddr subnet"); - $reqdfieldsn = explode(",", "IP address,Subnet bit count"); - - do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - - if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) { - $input_errors[] = "A valid IP address must be specified."; - } - if (($_POST['subnet'] && !is_numeric($_POST['subnet']))) { - $input_errors[] = "A valid subnet bit count must be specified."; - } - - /* Wireless interface? */ - if (isset($lancfg['wireless'])) { - $wi_input_errors = wireless_config_post($lancfg); - if ($wi_input_errors) { - $input_errors = array_merge($input_errors, $wi_input_errors); - } - } - - if (!$input_errors) { - - unset($lancfg['disableftpproxy']); - - /* per interface pftpx helper */ - if($_POST['disableftpproxy'] == "yes") { - $lancfg['disableftpproxy'] = true; - system_start_ftp_helpers(); - } else { - system_start_ftp_helpers(); - } - - if (($lancfg['ipaddr'] != $_POST['ipaddr']) || ($lancfg['subnet'] != $_POST['subnet'])) { - update_if_changed("IP Address", &$lancfg['ipaddr'], $_POST['ipaddr']); - update_if_changed("subnet", &$lancfg['subnet'], $_POST['subnet']); - } - - write_config($changedesc); - - touch($d_landirty_path); - - /* restart snmp so that it binds to correct address */ - services_snmpd_configure(); - - if ($_POST['apply'] <> "") { - - unlink($d_landirty_path); - - $savemsg = "The changes have been applied. You may need to correct your web browser's IP address."; - - } - } -} - -$pgtitle = array("Interfaces","LAN"); -include("head.inc"); - -?> - - - - - -
- - -

-You must apply the changes in order for them to take effect.

Don't forget to adjust the DHCP Server range if needed before applying.");?>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IP configuration
IP address - - / -
FTP Helper
FTP Helper - onclick="enable_change(false)" /> - Disable the userland FTP-Proxy application -
-
  - -
 Warning:
-
after you click "Save", you will need - to do one or more of the following steps before you can - access your firewall again: -
    -
  • change the IP address of your computer
  • -
  • renew its DHCP lease
  • -
  • access the webConfigurator with the new IP address
  • -
  • be sure to add firewall rules to permit traffic through the interface.
  • -
  • You also need firewall rules for an interface in bridged mode as the firewall acts as a filtering bridge.
  • -
-
-

- - - - - "") { - - ob_flush(); - flush(); - - interfaces_lan_configure(); - - reset_carp(); - - /* sync filter configuration */ - filter_configure(); - - /* set up static routes */ - system_routing_configure(); - - if(file_exists($d_landirty_path)) - unlink($d_landirty_path); - -} - -?>