#!/usr/local/bin/php = $subnet_start) && (ip2long($_POST['localip']) <= $subnet_end)) { $input_errors[] = "The specified server address lies in the remote subnet."; } if ($_POST['localip'] == $config['interfaces']['lan']['ipaddr']) { $input_errors[] = "The specified server address is equal to the LAN interface address."; } } } if (!$input_errors) { $pppoecfg['remoteip'] = $_POST['remoteip']; $pppoecfg['localip'] = $_POST['localip']; $pppoecfg['mode'] = $_POST['mode']; $pppoecfg['interface'] = $_POST['interface']; $pppoecfg['n_pppoe_units'] = $_POST['n_pppoe_units']; $pppoecfg['radius']['server'] = $_POST['radiusserver']; $pppoecfg['radius']['secret'] = $_POST['radiussecret']; if($_POST['radiusenable'] == "yes") $pppoecfg['radius']['enable'] = true; else unset($pppoecfg['radius']['enable']); if($_POST['radacct_enable'] == "yes") $pppoecfg['radius']['accounting'] = true; else unset($pppoecfg['radius']['accounting']); write_config(); $retval = 0; config_lock(); $retval = vpn_pppoe_configure(); config_unlock(); $savemsg = get_std_save_message($retval); } } $pgtitle = "VPN: PPPoE"; include("head.inc"); ?>
=$pgtitle?>