diff options
author | gnhb <gnoahb@gmail.com> | 2010-03-29 20:03:55 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-03-29 20:03:55 +0700 |
commit | c90f247117ace2af4e072e7004e1750875e568ff (patch) | |
tree | 9ffc5d18ff5358ff09854d6170474f8dcb836d86 /etc/inc/interfaces.inc | |
parent | a216a03a00166350c22162f1e0da03927e23af10 (diff) | |
download | pfsense-c90f247117ace2af4e072e7004e1750875e568ff.zip pfsense-c90f247117ace2af4e072e7004e1750875e568ff.tar.gz |
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.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index f2ad8d4..65e3996 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -969,24 +969,27 @@ EOD; } $mpdconf .= <<<EOD -# Create link. create link static lnk{$interface} modem set link disable chap pap set link accept chap pap eap set link enable no-orig-auth -# To make Ringback work we should specify how to handle incoming calls originated by it. #set link enable incoming set link action bundle {$interface} EOD; - if (!empty($ppp['username'])) { + if (empty($ppp['username'])) { + $ppp['username'] = "user"; + $ppp['password'] = "none"; + } + if (empty($ppp['password'])) + $ppp['password'] = "none"; + $mpdconf .= <<<EOD set auth authname "{$ppp['username']}" - set auth password "{$ppp['password']}" + set auth password {$ppp['password']} EOD; - } $mpdconf .= <<<EOD set modem device {$ppp['port']} |