1410 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
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
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
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
Franco Fichtner
2aca9405df console: fix a crash report 2016-05-05 12:29:21 +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
ceafaf0ab4 config: remove unused code 2016-05-03 09:26:42 +02:00
Franco Fichtner
67a3a7e85c rc: load required kernel modules 2016-05-02 09:01:15 +02:00
Franco Fichtner
e5d57a43f4 Revert "php: remove ctype dependency; closes #917"
This reverts commit ed81dd30de0ca621c244540c35d965aa17ca41d7.
The state of digit validation is highly controversial.  I give
up.  :)
2016-04-28 21:50:35 +02:00
Franco Fichtner
3f8c0fea4e interfaces: port the last php module function, remove module
While this is a neat milestone, it becomes apparent how convuluted
the code path and interface info polling is.  Looking at it, the
whole interface layer can probably make performance jumps to at least
twice the read or reconfigure speed...
2016-04-28 21:38:55 +02:00
Franco Fichtner
3272c7bb1f interfaces: different strategy for status porting 2016-04-28 16:34:02 +02:00
Franco Fichtner
9b94d2f2f6 interfaces: port status-only probe 2016-04-28 16:10:15 +02:00
Franco Fichtner
c46d5ad0e9 interfaces: port flags-only fiddling 2016-04-28 15:43:20 +02:00
Franco Fichtner
a445548af4 interfaces: port mtu-only probe 2016-04-28 15:41:48 +02:00
Franco Fichtner
b17d74faba interfaces: fix typo in previous 2016-04-28 12:24:58 +02:00
Franco Fichtner
4e8debf8f3 interfaces: old switcheroo for eventual php module removal
Only one function left.  :)
2016-04-28 12:21:08 +02:00
Franco Fichtner
2533e1103d interfaces: portable alternative for php module function
BTW: 5000 commits on master branch, yay, party!
2016-04-28 12:20:15 +02:00
Franco Fichtner
6e5fbbc9aa php: bcmath was used for pre-16.1 captive portal only 2016-04-28 09:40:42 +02:00
Franco Fichtner
ed81dd30de php: remove ctype dependency; closes #917
Needs a bit of observation, but as far as I can see the only difference
is that is_numeric() will also take int values and return true for them,
ctype_digit() will only return true for string values that have digits.
2016-04-28 09:35:20 +02:00
Franco Fichtner
7bf795b15e interfaces: fix numerous iterators 2016-04-27 19:24:10 +02:00
Franco Fichtner
50e4df6cb7 src: three crash reports 2016-04-27 13:52:41 +02:00
Franco Fichtner
1d0ae14682 php: scrub dependencies for #915 2016-04-27 10:42:19 +02:00
Franco Fichtner
546dda2def aliases: merge update freq calculation code for portability 2016-04-27 07:15:20 +02:00
Franco Fichtner
c09b929941 cron: slightly improve generated output, adjkerntz is alreay in 2016-04-26 07:43:26 +02:00
Franco Fichtner
0779941247 cron: shift conditions, cron entries can now be entry 2016-04-26 07:37:49 +02:00
Franco Fichtner
8be72857e2 cron: special case no longer applies #911 2016-04-26 07:34:58 +02:00
Franco Fichtner
9f12e7f7ee cron: flush all, PHP can be tricky #911 2016-04-26 07:28:21 +02:00
Franco Fichtner
ed8c5a4f89 cron: batch uninstall, remove empty config remnants #911 2016-04-26 06:44:11 +02:00
Franco Fichtner
af4ce2d0ae cron: migrate immutable jobs; #911 2016-04-25 20:28:05 +02:00
Franco Fichtner
9ce4fc1d95 cron: bogons already registered/stripped; #911 2016-04-25 18:57:37 +02:00
Franco Fichtner
fd3ac67c69 cron: start removing the immutable cron jobs in the config; #911 2016-04-25 18:54:45 +02:00
Franco Fichtner
5d80d46205 cron: remove custom install hook; #911 2016-04-25 18:49:17 +02:00
Franco Fichtner
5a10f56aa2 cron: remove install_cron_job() usage; #911 2016-04-25 18:39:38 +02:00
Franco Fichtner
98485c3966 cron: just a bit more 2016-04-25 18:14:27 +02:00
Franco Fichtner
4958ea7b5a cron: fix previous, harder than expected :D 2016-04-25 18:13:46 +02:00
Franco Fichtner
8c9be5cab8 cron: the bogon job; #911 2016-04-25 18:03:19 +02:00
Franco Fichtner
6588238185 cron: stop polluting the config with redundant information
This makes it easier to migrate cron jobs in the future.  Still not
all callers converted, but we'll get there.  ;)
2016-04-25 17:43:57 +02:00
Franco Fichtner
8ff7c87ffe cron: expose configure_cron() instead if invoking it multiple times #911 2016-04-25 17:26:23 +02:00
Franco Fichtner
f95483a5e8 rc: remove unused 2016-04-25 11:31:22 +02:00
Franco Fichtner
58c923b775 backup: simple rrd backup, xml export done elsewhere #909 2016-04-25 11:25:22 +02:00
Franco Fichtner
1586ee02ff backup: reworked stategies; closes #909 2016-04-25 11:15:04 +02:00
Franco Fichtner
ce4bb4e7a6 backup: remove unused env var and add netflow script 2016-04-25 10:39:31 +02:00
Franco Fichtner
84416c7187 rrd: copy+paste problem with cputemp; closes #888 2016-04-25 10:03:04 +02:00
Franco Fichtner
25a6aa6bb4 system: change halt to power off; closes #907 2016-04-24 11:52:41 +02:00