From c90f247117ace2af4e072e7004e1750875e568ff Mon Sep 17 00:00:00 2001 From: gnhb Date: Mon, 29 Mar 2010 20:03:55 +0700 Subject: Changes to make PPP work again. mpd5 fails to establish a ppp link without *some* username and password, so defaults are set if user enters nothing. Removed interface_ppp_configure call from interfaces_ppp_edit.php. It was useless there with the new structure, and it caused all PPP links to attempt to connect when user presses "Save" even before they are assigned to LAN/WAN, etc. Also, fix up pfsense-utils.inc and status_interfaces.php to display more info on status_interfaces.php. Changed util.inc to allow cua* interfaces to be recognized as real interfaces as pfSense got "interface mismatch" at boot and forced user to reassign. Maybe someone else has a better way to do this. --- usr/local/www/interfaces_ppp_edit.php | 8 +++----- usr/local/www/status_interfaces.php | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces_ppp_edit.php b/usr/local/www/interfaces_ppp_edit.php index 9657466..f3aae99 100644 --- a/usr/local/www/interfaces_ppp_edit.php +++ b/usr/local/www/interfaces_ppp_edit.php @@ -137,12 +137,10 @@ if ($_POST) { $ppp['descr'] = $_POST['descr']; - $iflist = get_configured_interface_list(); - foreach ($iflist as $if) { - if ($config['interfaces'][$if]['if'] == basename($a_ppps[$id]['port'])) { + $iflist = get_configured_interface_list(); + foreach ($iflist as $if) { + if ($config['interfaces'][$if]['if'] == basename($a_ppps[$id]['port'])) $config['interfaces'][$if]['if'] = basename($ppp['port']); - interface_ppp_configure($if); - } } if (isset($id) && $a_ppps[$id]) diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php index 5ebde3d..eaa968b 100755 --- a/usr/local/www/status_interfaces.php +++ b/usr/local/www/status_interfaces.php @@ -138,12 +138,12 @@ include("head.inc"); PPP -    - + + - + -- cgit v1.1