Commit Graph

64 Commits

Author SHA1 Message Date
jim-p
fd5efd386f Fix exec perms on mail.php 2013-06-13 13:12:47 -04:00
jim-p
dd16aadff6 Add a simple CLI mail script capable of sending an SMTP message using echo/piped input, e.g. ifconfig -a | mail.php -s"ifconfig output" 2013-06-13 13:05:14 -04:00
Renato Botelho
5705c60a24 Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change.

This reverts commit 40c7b1a98b, reversing
changes made to d896f86751.
2013-02-17 11:34:44 -03:00
Michael Newton
91ca7e9fa0 use associative array for captive portal to prevent confusion, messiness, and abuse 2013-02-14 21:14:38 -08:00
Renato Botelho
cba9d7d9a5 Adjust RRD captive portal graphs for CP zones
- Create RRD configs per zone
- Add tabs to see graphs per zone
- Migrate existing rrd files to default cpZone
- While I'm here, call unset() for $rrdcreate and $rrdupdatesh

Resolves #2655
2013-02-06 15:54:47 -02:00
Renato Botelho
5e5d5abc0f Fix indent and whitespaces 2013-02-06 15:54:47 -02:00
smos
dc3e3acb9b Disable Execution timeout for this script. 2012-08-17 07:15:06 +02:00
smos
b45d6db6c4 Round off the values. 2012-05-23 20:25:27 +02:00
smos
5e13bc843e Convert the Bytes per Second into kilobits per second like the status page says 2012-05-23 20:08:40 +02:00
smos
d535507a07 Add more fields to the 3g stats 2012-05-23 13:25:49 +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
7efe5ac50c Initialize the statistics, also parse on MODE messages 2012-05-23 11:41:23 +02:00
smos
73ce690995 Make sure to bail the stats script if we can not open the modem device. 2012-05-23 09:21:44 +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
jim-p
ca88c37ed5 Include TCP flags in CLI filter parser output (if present) 2012-05-09 13:25:50 -04:00
Jim P
30a560cfca Merge pull request #53 from jeandebogue/patch-1
Move the echo "UP|DOWN" earlier
2012-03-15 06:19:24 -07:00
Warren Baker
4b0e8c916b No need for extra function and touching of file, just set the value and use grep from XML to determine to beep or not 2012-02-23 10:35:03 +02:00
Yehuda Katz
5e4d70a082 Option to disable startup/shutdown sounds 2012-02-22 23:17:05 -05:00
jeandebogue
fad0e014a7 Update usr/local/bin/ping_hosts.sh 2012-02-21 08:52:56 +01:00
smos
b9ee868674 Revert "Remove the -S $SRCIP to ping and added a timeout."
This is functionality that can not be removed to properly keep VPN tunnels alive.

This reverts commit d4e37b2edd.
2012-02-21 08:04:45 +01:00
jeandebogue
d4e37b2edd Remove the -S $SRCIP to ping and added a timeout. 2012-02-21 08:55:49 +01:00
jim-p
0c305760d1 Allow using subnets and special nets in the CLI version of easyrule 2012-01-13 14:27:48 -05:00
jim-p
633136b87f Fix help text 2012-01-13 13:31:34 -05:00
Andrew Thompson
7734aea648 Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.
2011-08-17 14:15:18 +12:00
jim-p
27d0722d13 Merge remote branch 'upstream/master' 2011-05-19 08:50:48 -04:00
Warren Baker
9cd7285680 Ensure that $timestamp is only ever written out if it contains a value and let file be retained through reboots. 2011-05-16 16:25:32 +02:00
Seth Mos
aff70640bf Swap if statement, add fields into ipsecpinghosts file 2011-03-16 13:28:39 +01:00
Seth Mos
e3e85044d1 Add field 8 for address family 2011-03-16 13:26:46 +01:00
Chris Buechler
020b954f20 at least don't touch rrd here, that rrd won't exist anyway 2011-02-06 00:13:55 -05:00
Chris Buechler
bfa49caee3 Revert "the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd)" this is used by at least the DNS server pkg
This reverts commit 9fcf15773c.
2011-02-06 00:05:37 -05:00
Chris Buechler
9fcf15773c the only thing ping_hosts.sh is used for is pinging IPsec hosts. comment out all this complexity that makes it do way more than it needs to (and was throwing an error on rrd, it shouldn't be touching rrd) 2011-02-05 03:10:26 -05:00
Warren Baker
20413b72bf Added Captive Portal RRD graphs, there are two graphs one for the number of logged in users since last rrd poll, and concurrent number of users logged in. 2011-01-28 17:16:19 +02:00
jim-p
16926fdccc Use grep -c instead of wc and awk. Also use full paths. 2010-11-29 18:38:17 -05:00
jim-p
ac617a8ffa Eliminate a cat-to-grep 2010-11-29 18:31:29 -05:00
Erik Fonnesbeck
baaa8bb142 Move this function to allow removing it from easyrule. 2010-11-10 22:58:30 -07:00
Ermal
65167fcc05 Do not run anymore the cron job for monitoring check_reload_status since it has a monitoring process that does this through kqueue. 2010-10-16 15:27:30 +00:00
jim-p
e97d0e42f4 Fix permissions. 2010-03-14 17:29:40 -04:00
jim-p
865ff9b464 Refactor the Easy Rule code a bit. Add a CLI version. 2010-03-14 17:16:32 -04:00
jim-p
b3e79d5ee5 Fix double printing of log entries 2010-02-15 13:01:12 -05:00
Ermal Luçi
f41c9fd56a ping_hosts.sh is no more in /etc. Remove some unneeded lines. 2010-02-03 15:19:14 +00:00
jim-p
68b8930313 Set executable 2009-11-15 11:26:04 -05:00
jim-p
e390b503f5 Move two include files to /etc/inc instead of leaving them in the www dir. Move filterparser.php to /usr/local/bin since it's not meant to be used from the web interface. 2009-11-15 11:22:45 -05:00
Chris Buechler
6f895eca44 this is super annoying in VMware, exit if running in VMware 2008-07-20 19:15:49 +00:00
Chris Buechler
5493e30c58 Add shortcut command for manual config editing 2008-07-07 04:46:02 +00:00
Seth Mos
ee498244b9 Move ping_hosts.sh to usr/local/bin 2008-06-21 16:12:58 +00:00
Scott Ullrich
f5af050199 Correctly deterimine if /boot/loader.conf exists. 2008-02-05 17:40:10 +00:00
Scott Ullrich
f0504457e8 Only process /boot/loader.conf if it exists avoiding a
somehwhat ugly looking error on cdrom boot.
2008-01-16 01:22:54 +00:00
Chris Buechler
c7188adec3 remove unnecessary grep
Ticket #1573
2008-01-10 03:32:38 +00:00
Scott Ullrich
15fb334387 Detect vmware and embedded platforms and lower the note duration
automatically.
2007-12-27 03:38:50 +00:00
Scott Ullrich
28c565d43c Correct script checks. 2007-12-27 03:30:18 +00:00