summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-03-26 19:41:42 +0700
committerScott Ullrich <sullrich@pfsense.org>2010-03-26 18:12:40 -0400
commit9ebe7028594e47728980699f5417364e73ef438a (patch)
tree138d6256eadb03a155205f9dcbff9bb8b9dbfbcd /usr/local/www/status_interfaces.php
parenta01d8d8bf76245f10b8259eb4b99ef47a9a77209 (diff)
downloadpfsense-9ebe7028594e47728980699f5417364e73ef438a.zip
pfsense-9ebe7028594e47728980699f5417364e73ef438a.tar.gz
I have PPP with mpd5 working really well now, including setting the APN and APN
Number, and the SIM PIN and wait time for the SIM to settle after the PIN is entered. Still no work on multilink PPP with serial port links. Right now the code creates the mpd.secret file. I tested it using the set auth password <password> syntax in the mpd.conf file and got errors so I kept the mpd.secret file generation. PPP for modems does need the mpd.script file. It's the chat script file for the link establishment. Right now it has to be in /usr/local/sbin/mpd.script, and it's linked to /var/etc/ at boot time when ppp is first configured. I also took away the "Dialcmd" field in the PPP setup page (and a couple others) because the script is rather comprehensive and is designed to handle many modems. My two 3G modems worked without modification to the script. I did have to modify the scrip to handle the setting of APN and SIM PINs. I made the Init String field work, and the default init commands in the ATT&T, Verizion, and Sprint defaults now come up in the Init String field. You also no longer should put an "AT" at the beginning of modem commands entered in the web page because the script does that for you. I implemented interface renaming and that simplified the new code a lot, so that's nice. Now ppp interfaces start with ppp0 and go up as you add more. This patch refers to the ppp-linkup and linkdown scripts in the /usr/local/sbin/ directory so custom PPP linkup and linkdown scripts are not needed anymore. The persistent uptime tracking is still an open issue, but it works within each connected session. I'm already experiencing much smother conditions with mpd5 for PPP on 3G than I was with userland ppp. It's very nice.
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index 80ef507..5ebde3d 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -143,17 +143,19 @@ include("head.inc");
<a href="status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>">
<input type="button" name="<?php echo $ifdescr; ?>" value="Disconnect" class="formbtns">
<?php else: ?>
- <a href="status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>">
- <input type="button" name="<?php echo $ifdescr; ?>" value="Connect" class="formbtns">
+ <?php if (!$ifinfo['missing_device']): ?>
+ <a href="status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>">
+ <input type="button" name="<?php echo $ifdescr; ?>" value="Connect" class="formbtns">
+ <?php endif; ?>
<?php endif; ?>
</a>
</td>
</tr>
<?php endif; if ($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated']): ?>
<tr>
- <td width="22%" class="vncellt">PPP uptime</td>
+ <td width="22%" class="vncellt">PPP uptime (historical)</td>
<td width="78%" class="listr">
- <?=htmlspecialchars($ifinfo['ppp_uptime']);?>Previous Sessions:&nbsp;<?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>&nbsp;&nbsp;
+ <span id="uptime"><?=htmlspecialchars($ifinfo['ppp_uptime']);?></span><span id="uptime_hist"> (<?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>)</span>&nbsp;&nbsp;
</td>
</tr>
<?php endif; if ($ifinfo['macaddr']): ?>
OpenPOWER on IntegriCloud