4599 Commits

Author SHA1 Message Date
Franco Fichtner
5f14ec367a firewall: remove schedule expiry override
This is the default for pf(4), we don't need a kernel patch to
override this.
2016-05-07 18:38:10 +02:00
Franco Fichtner
726e4c05bc firewall: fix previous 2016-05-07 18:23:36 +02:00
Franco Fichtner
fffcede4e1 cron: migrate the time-based rules cron job to autocron
o Gets rid of cron save/flush in the filter reload path.
o Gets rid of cron job injection into config.
o Move configure_cron() to the rules edit where it can be
  flipped in case of schedule changes.

To be totally frank, a 15 minute hook to deploy a time
based system is hardly accurate.  But what worries me more
is that we still have this patch in the kernel, totally
unsure of what it actually does when we have a schedule-based
reload on top anyway:

0a19f81317
2016-05-07 18:13:26 +02:00
Franco Fichtner
7086992b22 filter: localise time_based_rules variable usage
Even though we take a hit for running through the filter rules
array again, it's the first step for sidestepping the need to
use the config to inject our cron job and flush the rules in
mid-reload...
2016-05-07 17:48:42 +02:00
Franco Fichtner
c43fcea649 firewall: remove command.txt magic; closes #525
o Synchronise the calls as there should be no drawback running
  in the background for a table flush.
o Locallise the after-filter hook to the two functions using it.
o Restrict the functionality to flush tables only.
o Remove some dead code along the way.
2016-05-07 17:35:18 +02:00
Ad Schellevis
82fd7db543 (dashboard, widgets) cleanup system_information.widget.php 2016-05-07 10:04:49 +02:00
Fabian Franz
587720a577 remove space in services_wol.php 2016-05-06 22:14:13 +02:00
Fabian Franz
6bfb694241 translation and coding style status_interfaces.php 2016-05-06 22:07:07 +02:00
Franco Fichtner
809625fd9e pkg: sync dependencies between extensions.ini and pkg deps 2016-05-06 09:27:25 +02:00
Franco Fichtner
dd66ab3cba rc: likely bug in pkg(8)
PR: https://github.com/freebsd/pkg/issues/1424
2016-05-06 09:12:57 +02:00
Franco Fichtner
cfd506adf4 rc: corrections for mfs handling 2016-05-06 08:25:51 +02:00
Franco Fichtner
f7f86de77b rc: code review on previous 2016-05-06 07:18:49 +02:00
Ad Schellevis
2734f2a0ae (dashboard, widgets) work in progress system_information.widget.php 2016-05-05 22:15:52 +02:00
Ad Schellevis
23619829de (dashboard, widgets) work in progress sys info widget backend 2016-05-05 18:06:38 +02:00
Franco Fichtner
b472a1283f rc: consistent naming makes sense; fix previous 2016-05-05 15:25:29 +02:00
Franco Fichtner
612e039b78 rc: persistent firmware cache dirs on MFS; closes #924
This adds the following directories to avoid problems with
smaller embedded systems that do not have enough RAM:

	/var/cache/opnsense-update
	/var/cache/pkg

This is particularly bad for Nano systems with enough RAM
as it may grind the flash storage, but since this is a
"luxury" problem with Nano the scope is limited to that.
It's either being able to upgrade the firmware for all or
not at all.

FWIW, firmware upgrades will have to move to persistent
storage as soon as we hit FreeBSD 11 for the simple fact
that we'll have to do partial upgrade stages for the ABI
jumps of the kernel / base system anyway and cannot expect
to fetch more packages after reboot.

Proper garbage collection exists in both tools that shall
avoid overloading the persistant storage.
2016-05-05 15:17:34 +02:00
Ad Schellevis
a40388b484 (dashboard, widgets) work in progress restructure system_information.widget.php (not finished yet) 2016-05-05 12:40:40 +02:00
Franco Fichtner
2aca9405df console: fix a crash report 2016-05-05 12:29:21 +02:00
Ad Schellevis
b7eb3c8b66 (reporting -> settings) wrong form target, closes https://github.com/opnsense/core/issues/925 2016-05-04 21:15:55 +02:00
Fabian Franz
619b089c1b translation and style fixes 2016-05-04 15:19:44 +02:00
Ad Schellevis
8a6fde9c36 & 2016-05-04 13:46:44 +02:00
Ad Schellevis
f286da8ea0 (dashboard) widget heading text alignment 2016-05-04 13:02:56 +02:00
Ad Schellevis
53c1001b5a (hasync) add dns resolver to sync, service restart not included, probably needs a seperate page at some point. closes https://github.com/opnsense/core/issues/923 2016-05-04 11:47:28 +02:00
Franco Fichtner
32c280519d csrf: time to make this mandatory 2016-05-04 11:37:45 +02:00
Ad Schellevis
18ad5dac74 (dashboard) html issue 2016-05-04 11:34:27 +02:00
Ad Schellevis
8a6f8559ce (dashboard, widgets) refactor wake_on_lan.widget.php 2016-05-04 11:30:41 +02:00
Ad Schellevis
686378d97b (dashboard, widgets) small style cleanups for legacy traffic graph 2016-05-04 11:11:17 +02:00
Ad Schellevis
e860003585 remove unused ipsec.js 2016-05-03 20:17:39 +02:00
Ad Schellevis
90a31b13da (dashboard, widgets) replace thermal_sensors.widget.php 2016-05-03 20:12:49 +02:00
Franco Fichtner
53f6dace75 www: remove old cache disable, only used twice and uneeded 2016-05-03 17:18:13 +02:00
Ad Schellevis
6097278e98 gettext() 2016-05-03 17:17:13 +02:00
Franco Fichtner
d218b225cc csrf: tighten csrf code paths a little
o restructure session open/close for better visibility
o remove potentially insecure "try again" button
o remove override for switching csrf off (defer)
2016-05-03 17:02:00 +02:00
Franco Fichtner
bef4c80115 system: zap unneeded nocsrf assignment 2016-05-03 17:00:17 +02:00
Ad Schellevis
2b8bdc0c87 (dashboard, widgets) cleanup system_log.widget.php 2016-05-03 16:15:44 +02:00
Ad Schellevis
865b51da54 (dashboard, widgets) refactor services_status.widget.php 2016-05-03 16:06:48 +02:00
Ad Schellevis
85149c0eea (dashboard, widgets) cleanup rss.widget.php 2016-05-03 15:45:59 +02:00
Ad Schellevis
768fdcc003 (dashboar, widgets) cleanup openvpn.widget.php, use status_openvpn.php for ajax action 2016-05-03 15:42:14 +02:00
Ad Schellevis
c40b18244d spacing and cleanups in picture.widget.php 2016-05-03 15:40:49 +02:00
Ad Schellevis
569365fb10 duplicate tag 2016-05-03 15:39:30 +02:00
Ad Schellevis
759038b552 (dashboard) reallocate form ending 2016-05-03 15:32:17 +02:00
Ad Schellevis
73441cd923 (dashboard, widget) small cleanups load_balancer_status.widget.php 2016-05-03 15:00:53 +02:00
Ad Schellevis
07f02a8830 ipsec.widget.php missing </div> 2016-05-03 14:55:12 +02:00
Ad Schellevis
13dee9ef9f missing <tr> dyn_dns_status.widget.php 2016-05-03 14:48:19 +02:00
Ad Schellevis
7a670d6541 (dashboard, widget) spacing and small layout changes in ntp_status.widget.php, very anchient and unreadable code.... not spending more time on this now 2016-05-03 14:09:52 +02:00
Ad Schellevis
b9333627b7 remove nocsrf in log.widget.php 2016-05-03 13:59:55 +02:00
Ad Schellevis
c81a157a3a spacing in load_balancer_status.widget.php 2016-05-03 13:55:09 +02:00
Ad Schellevis
8b939fa2cc (dashboard, widgets) spacing ipsec.widget.php 2016-05-03 13:49:15 +02:00
Ad Schellevis
ca19fb0393 (dashboard, widgets) refactor interface_statistics.widget.php, use callbacks to update data 2016-05-03 13:41:27 +02:00
Ad Schellevis
ecb13223c7 (dashboard, widgets) add errors and collisions to plugins/interfaces.inc 2016-05-03 13:40:20 +02:00
Ad Schellevis
23d7e6f1ce (dashboard, widget) remove getstats.php dependency in interface_list.widget.php 2016-05-03 13:22:08 +02:00