11515 Commits

Author SHA1 Message Date
Ad Schellevis
eed35c92b7 log: parse timestamps %Y/%m/%d %H:%M:%S for https://github.com/opnsense/core/issues/3831 2019-11-28 18:00:49 +01:00
Ad Schellevis
2ccb852673 log: set rowcount https://github.com/opnsense/core/issues/3831 2019-11-28 17:56:01 +01:00
Ad Schellevis
03511f1aa8 log: forgot to store selections https://github.com/opnsense/core/issues/3831 2019-11-28 17:51:28 +01:00
Franco Fichtner
53c04abaf5 pkg: fix plist 2019-11-28 17:37:32 +01:00
Ad Schellevis
c56fff792d log: move core modules to new mvc module. for https://github.com/opnsense/core/issues/3831 2019-11-28 17:29:10 +01:00
Ad Schellevis
cbd3beeb7d log: complete new log module for https://github.com/opnsense/core/issues/3831
- add module (core is standard log directory)
- add clear endpoint (/api/diagnostics/log/{module}/{file}/clear
- parse various date formats into iso dates for the frontend
2019-11-28 16:13:28 +01:00
Ad Schellevis
8cf9c4fe08 fix previous, related to https://github.com/opnsense/core/issues/3831 2019-11-28 16:10:42 +01:00
Ad Schellevis
0844a5a27b log, minor bug in reverse log reader, when reading clog files, the beginning of the file isn't detected. found while working on https://github.com/opnsense/core/issues/3831 2019-11-28 15:56:57 +01:00
Franco Fichtner
7a1dc9fc10 pkg: fix plist 2019-11-28 09:23:19 +01:00
Ad Schellevis
b7662a109e Logging, functional concept for https://github.com/opnsense/core/issues/3831 (work in progress, not finished) 2019-11-26 22:01:39 +01:00
Ad Schellevis
5c6d780f8c logging, throw an exception when logfile doesn't look like a clog file, makes it easier to auto-detect clog/plain logs 2019-11-26 21:44:46 +01:00
Ad Schellevis
8df5374a9f Firewall/aliases, log when hostname couldn't be resolved. closes https://github.com/opnsense/core/issues/3737 2019-11-24 15:49:46 +01:00
Maurice
3902d3b66e Fix range check for advanced radvd options
Didn't allow max value.
2019-11-24 08:59:44 +01:00
Ad Schellevis
bbb4d907ae CARP: typo in validation. related to https://github.com/opnsense/core/issues/3732 2019-11-23 10:07:44 +01:00
Ad Schellevis
5c954133b8 IPSec: service hook should use pluginctl to flush config to disk, for https://github.com/opnsense/core/issues/3827 2019-11-22 15:32:59 +01:00
Maurice
d683929fc6 DHCPv6, replace domain name option with domain search list option (#3824)
* DHCPv6, fix Domain Search List bugs

Remove "domain-name" option (which doesn't exist in DHCPv6) from dhcpdv6.conf. For the global option (system domain) and static mappings, replace with "dhcp6.domain-search" option (already exists as an interface option).

* Remove domain name option

The domain name option doesn't exist in DHCPv6.

* Replace domain name with domain search list option

The domain name option doesn't exist in DHCPv6.

* fix dhcp6.domain-search option for static mappings
2019-11-22 10:23:16 +01:00
Ad Schellevis
38b613614b opt-out on "Allow DNS server list to be overridden by DHCP/PPP on WAN" for selected interfaces. for https://github.com/opnsense/core/issues/3701 2019-11-21 18:08:06 +01:00
Ad Schellevis
64fd58da15 Gateways: "Mark Gateway as Down" also means exclude from default gateway selection, dicussed with @mimugmail for https://github.com/opnsense/core/issues/3597 2019-11-21 16:24:29 +01:00
Ad Schellevis
fde54d978e OpenVPN export. Firefox doesn't like "nowrap" causing https://github.com/opnsense/core/issues/3825 2019-11-21 14:19:07 +01:00
Ad Schellevis
36372b939b interfaces: move description into top block and rename titles like suggested by @fichtner closes https://github.com/opnsense/core/pull/3808 2019-11-21 13:43:40 +01:00
Ad Schellevis
11daec2aab oops, test file 2019-11-20 14:11:21 +01:00
Ad Schellevis
16eca2b900 IDSi / rule download, unescape filename , closes https://github.com/opnsense/plugins/issues/1585 2019-11-20 08:57:50 +01:00
Ad Schellevis
02caac79b6
Support ECC Certificate Creation (#3823)
Support ECC Certificate Creation (https://github.com/opnsense/core/pull/3649)
2019-11-20 08:41:26 +01:00
Maurice
502e6c709c DHCPv6, fix for domain-search option
The "domain-search" option in dhcpdv6.conf must be prefixed with "dhcp6". This fixes one of the issues from #2336 which are still open.
2019-11-20 07:52:49 +01:00
Ad Schellevis
10a3012520 IDS: rule downloader, catch UnicodeDecodeError and log. 2019-11-19 08:54:00 +01:00
Ad Schellevis
5f32b0788a System health: minor cleanups, show dialog when RRD is disabled. closes https://github.com/opnsense/core/issues/3141 2019-11-15 18:02:05 +01:00
Ad Schellevis
1bdef70624 MVC: route to default page when controller or acion not found, closes https://github.com/opnsense/core/issues/2435 2019-11-15 17:12:43 +01:00
Ad Schellevis
715319b1c0 Unbound: exit wrapper when process not running. closes https://github.com/opnsense/core/pull/3553 2019-11-14 12:10:29 +01:00
Ad Schellevis
aa1a3886cd Dnsmasq: unable to configure on empty config data 2019-11-14 11:44:32 +01:00
Alexander Shursha
375f9318a6 Translate diag_pf_info (#3491) 2019-11-14 11:18:51 +01:00
Franco Fichtner
548932a71a system: honour defaults for non-config sysctls as well #3806 2019-11-14 09:38:13 +01:00
Franco Fichtner
4a4d72afd8 system: bootstrap a default value and always apply #3806
So that users are not seeing issues because they haven't done a
config reset yet.  It also allows us to bump the default again
if needed.
2019-11-14 09:24:23 +01:00
Ad Schellevis
8917f1c06f sysctl: maxdgram --> 8192. closes https://github.com/opnsense/core/issues/3806 2019-11-14 08:57:05 +01:00
Franco Fichtner
b1702d0c0a firmware: duplicates stay in the config #1663
When we install "os-debug" it will deinstall "os-debug-devel" so
we should update our logic.
2019-11-12 08:59:52 +01:00
Ad Schellevis
fba3861477 IDS/syslog, missed a spot for https://github.com/opnsense/core/issues/3806 2019-11-12 08:30:37 +01:00
Franco Fichtner
7fe5fe52dc rc: whitespace noise 2019-11-12 07:05:23 +01:00
René Losert
16efb9aa34 use freebsd built in growfs script (#3810) 2019-11-12 07:01:54 +01:00
Franco Fichtner
ee73840e9c dpinger: back to where it was in April 2019
PR: #3693
2019-11-11 23:01:57 +01:00
Ad Schellevis
188c517a26 IDS: eve syslog, lower payload-buffer-size to prevent syslog size limit. for https://github.com/opnsense/core/issues/3806 2019-11-11 21:55:51 +01:00
stilez
0c35ffbb8d Add "type" field to self-doc. SPlit from PR#3812 (#3813) 2019-11-11 21:36:37 +01:00
Franco Fichtner
f0b348bca6 rc: since 11.2 fsck_ffs will actually return ERERUN error 2019-11-11 07:30:23 +01:00
Franco Fichtner
850760471e pkg: fix plist 2019-11-09 17:54:57 +01:00
Ad Schellevis
a219bf134f Traffic shaper: safeguard deletes, using https://github.com/opnsense/core/issues/1897 2019-11-08 18:51:25 +01:00
Ad Schellevis
d19ad59201 MVC: on ApiMutableModelControllerBase add opt-in parameter $internalModelUseSafeDelete to check for referential integrity before delete, throwing a UserException when the uuid is found inside a tag which logically originates from a model. (has a uuid attribute and a version attribute in one of its parents)
closes https://github.com/opnsense/core/issues/1897
2019-11-08 18:27:12 +01:00
Ad Schellevis
e1883f34ac MVC: refactor JsonKeyValueStoreField type, skip unit test since it depends on configd. for https://github.com/opnsense/core/issues/3252 2019-11-08 16:04:00 +01:00
Ad Schellevis
5324f35ceb MVC: refactor InterfaceField and add unit tests for https://github.com/opnsense/core/issues/3252 2019-11-08 15:29:13 +01:00
Ad Schellevis
10be0e4585 MVC: refactor CountryField and add unit test for https://github.com/opnsense/core/issues/3252 2019-11-08 14:32:19 +01:00
Ad Schellevis
50da9e3190 MVC: fix a validation bug while working on https://github.com/opnsense/core/issues/3252
InclusionIn() validation only works when using string, php seems to convert keys automatically, in which case the following input:

$data = ["101" => "abc", "102" => "cde"];

would lead to these keys:

array_keys($data) ==> [101, 102]

when validating if 101,100 is a valid item in the list InclusionIn() seems to think so....
2019-11-08 12:33:36 +01:00
Ad Schellevis
75a94d86f5 MVC: missed default validation message for https://github.com/opnsense/core/issues/3252 2019-11-08 12:18:55 +01:00
Ad Schellevis
9f579672b9 MVC: refactor AuthGroupField and add unit test for https://github.com/opnsense/core/issues/3252 2019-11-08 11:57:21 +01:00