Commit Graph

84 Commits

Author SHA1 Message Date
smos
d23e157a06 Add more functions and expand the 3G status interfaces screen.
List the SIM state, service, speeds and mode
2012-05-23 17:14:28 +02:00
smos
99f95f7d3b Add the 3G mode display, really needs a function that translates these into sane display numbers for strength and mode.
The mode is actually a combination of LED color 4 = blue(idle), 5 = cyan(connected), and submode 7 = HSDPA
I need to find some proper documentation, really.
2012-05-23 12:15:23 +02:00
smos
5e5896856a Add 3G statistics for Huawei modems, split the Cellular stats out to per interface instead of global. 2012-05-21 15:31:02 +02:00
smos
1132ff358a Add section for the dhcp6link status 2012-04-04 14:51:22 +02:00
jim-p
0b29093bc4 Show lagg protocol and member interfaces on Status > Interfaces. Implements #2242 2012-02-28 12:57:46 -05:00
smos
584183558e Show the interface Link Local addresses on the status_interfaces.php 2012-01-15 13:07:36 +01:00
jim-p
156bf9b119 Merge remote branch 'upstream/master' 2011-06-08 14:13:22 -04:00
Chris Buechler
81debd44c8 Show the MAC on the page rather than just a hover, too many times it needs to be copied/pasted or quickly viewed, and the vendor isn't nearly as useful as the actual MAC. 2011-06-04 20:43:31 -04:00
Bill Marquette
325e316391 Merge branch 'master' into smos-ipv6
Conflicts:
	etc/inc/pfsense-utils.inc
2011-05-14 17:44:40 -05:00
Evgeny
57f2840e1f MAC prefix to vendor resolution at Status->Interfaces, Status->DHCP leases, Diagnostics->ARP table 2011-05-14 11:23:05 -05:00
Seth Mos
126f531437 Merge remote branch 'upstream/master'
Conflicts:
	etc/inc/rrd.inc
	usr/local/www/interfaces.php
2011-03-24 08:42:00 +01:00
gnhb
633de32902 Add missing "Connect/Disconnect" button to GUI for L2TP client connections. 2011-03-22 07:43:19 +07:00
Seth Mos
bbcc0f9c81 splay the IPv6 information on status interfaces. 2010-10-23 21:26:02 +02:00
Carlos Eduardo Ramos
ee64482250 Corrections gettext implementation on status_interfaces.php 2010-07-23 14:03:33 -03:00
Rafael Lucas
c8927bfba3 Corrections gettext calls on status_interfaces.php 2010-07-23 13:35:39 -03:00
gnhb
ed476f6f10 Add missing semicolon. 2010-06-16 22:17:34 +07:00
gnhb
59db783acd Modify pfsense-utils and status_interfaces.php so Uptime is shown for all PPPx type links. 2010-06-16 22:11:31 +07:00
gnhb
ebdbdbc26b Make display of interface name and uptime work again on status_interfaces.php 2010-06-06 19:52:28 +07:00
gnhb
c90f247117 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.
2010-03-29 20:03:55 +07:00
gnhb
9ebe702859 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.
2010-03-26 18:12:40 -04:00
Scott Ullrich
9cf4b285a5 Nuke &nbsp; 2010-01-27 15:33:29 -05:00
Scott Ullrich
8eb2f33a38 These patches give you a display of the uptime of the active PPP link
on the "Status-> Interfaces" page, and also logging on /conf (to
survive reboot) of uptimes of each session after it is closed. In
addition, the status_interfaces.php page displays the cumulative
uptime total so users can manage their links that are on pay by the
minute arrangements.

Shortcomings: partial minutes are just added as cumulative seconds
where most providers probably charge you for a minute after you're 1
second into that minute. I may fix this later.

Submitted-by:  Gabriel B
2009-12-29 15:51:54 -05:00
sullrich
0d7b21de68 Latest PPP changes from 'BG'. Reformat this royal mess of formatting while I am here. 2009-12-05 14:29:34 -05:00
sullrich
3d8237f43f Adding patch from "G B":
First, I update the get_real_interface function so that it returns just the serial port for the ppp device (instead of ppp_<serial_port>) when the ppp link is not up. This makes the function more useful because now you can call the "interface_ppp_configure" function and pass in the the result of "get_real_interface($wan)" for example.

I also changed the method that the "get_real_interface" function uses to get the tunnel interface name when the ppp link is up. I found that when my 3G modem was in a low signal area, the ppp link would come up partially, and not receive an IP address. If this occurred the web GUI would report that my WAN interface was "pflog0" because the method of chopping up the "ps aux" and "ifconfig" system calls didn't account for the tunnel being partially up (ppp running, but no connectivity.) The userland ppp program puts two files into /var/run when it is running. One is /var/run/<serial_device>.if which contains the interface name that the serial device is attached to, and the other is /var/run/tunX.pid which is the process id for the ppp instance using "tunX."
These two files are more simple and reliable methods of controlling and figuring out what's going on with the ppp link.

Second, I added a function to interfaces.inc called "interface_ppp_bring_down" which figures out the pid using the /var/run/tunX.pid file and sends a kill -QUIT signal to the ppp process.

Third, I modified interfaces_ppp_configure and interface_ppp_configure functions so that
1. The ppp interface is not brought up automatically when you save the configuration because this presents problems for defining ppp.conf entries for diagnostic purposes.
2. You can call interface_ppp_configure from other functions (like interface_configure($interface)) and not have to write the ppp.conf file to the disk when you just want to bring the link up.

Fourth, I added "interface_ppp_configure($realif)" to the function definition of "interface_configure" and "interface_ppp_bring_down" to the function definition of "interface_bring_down". These allow good integration into the existing code for bringing interfaces down and up from the status_interfaces.php page.

Finally, I modified the status_interfaces.php file so that you get a button to "connect" and "disconnect" the ppp wan link.
2009-12-04 08:49:48 -05:00
Seth Mos
6c4b9f4699 Show the RSSI, BSSID and the wireless connection rate 2009-11-26 22:02:32 +01:00
Scott Ullrich
1d333258dc Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on 2009-09-14 21:49:40 -04:00
Ermal Lui
56e1d16eba Correctly show actions such as Connect/Disconnect on Status Interfaces page. 2009-02-28 19:30:27 +00:00
Seth Mos
02fba58c96 Use correct new vars for counters 2008-12-16 08:09:38 +00:00
Scott Ullrich
71d9cd3d29 Nuke wrapping notice 2008-12-15 20:31:02 +00:00
Scott Ullrich
01385b0c29 * Use 64 bit counters from PF for interfafe stats
* Add block packets / traffic count, too
2008-12-15 20:23:56 +00:00
Ermal Luçi
07c179119b * Fix the actions on these page. Now renew/release/connect/disconnect work propperly.
* Make the page redirect to itself instead of index.php since we might not have permission on the later.
2008-11-30 20:46:27 +00:00
Ermal Luçi
80bf3f4aac Refactor some code so frontend does not need to know about details that might change
during development.
2008-10-19 13:20:32 +00:00
Ermal Luçi
1d4bd2bc79 Catch up with function renaming. 2008-09-10 11:08:14 +00:00
Scott Ullrich
0ed0083944 Turn off interrupts/second until we can upgrade the parsing code to use
a regex and stop showing bogus information such as:

Interrupts/Second: 	hifn0 total
			41258 rate
2008-08-28 21:02:12 +00:00
Matthew Grooms
6b07c15ad8 Rewrite the pfsense privilege system with the following goals in mind ...
1) Redefine page privileges to not use static urls
2) Accurate generation of privilege definitions from source
3) Merging the user and group privileges into a single set
4) Allow any privilege to be added to users or groups w/ inheritance
5) Cleaning up the related WebUI pages
2008-08-01 06:30:34 +00:00
Ermal Luçi
f1f60c926a * Merge multiple PPPoE/PPTP interfaces from RELENG_1_MULTI_ANYTHING
* Much improved rule generation speed
* Many bug fixing in general of the interface handling

NOTE: this is the other half of changes
2008-07-14 21:01:53 +00:00
Ermal Luçi
3e321df2be Continue interface improvements 2008-06-21 17:38:13 +00:00
Seth Mos
dde9a4fc50 Display proper gateway on status page. 2008-06-20 11:00:19 +00:00
Chris Buechler
764696e0e1 remove annoying and potentially problematic forced page refresh.
Ticket #1545
2007-12-17 07:11:59 +00:00
Scott Ullrich
d88c6a9fdf Switch over to array style page titles. Obtained-from: m0n0wall 2007-11-16 00:48:53 +00:00
Scott Dale
6189988d3c Move interface info function for global use 2007-04-24 23:18:48 +00:00
Scott Ullrich
aa8f994799 If we cannot deterimine interrupts a second for an interface, do not recycle last known values. 2007-04-10 18:04:47 +00:00
Scott Ullrich
29ed06c99b Only show interrupts a second if we can obtain the information for that interface 2007-03-21 21:15:38 +00:00
Scott Ullrich
12bade7c3f deal with uhci edge case 2007-03-21 21:08:11 +00:00
Scott Ullrich
6f7fb5c950 If vmstat is present then display interrupt total and rate. Recent snapshots already contain vmstat. 2007-03-21 20:57:02 +00:00
Scott Ullrich
9a77bfbeb0 Kill debugging text 2006-09-04 00:08:03 +00:00
Scott Ullrich
9cee226027 Backout last commit, we need some better parsing goo 2006-09-03 23:58:45 +00:00
Scott Ullrich
bf875fa977 Correctly match the interface to the state 2006-09-03 23:51:52 +00:00
Scott Ullrich
0529547cf6 Add bridge status 2006-09-03 23:12:42 +00:00
Scott Ullrich
f559eaf6ff Report gateway for an interface for optional interfaces if needed 2006-09-03 22:30:14 +00:00