Ad Schellevis
211fd8dfb3
firewall: for automatic rules, floatind means either all interfaces (empty) or more than one selected. for https://github.com/opnsense/plugins/issues/1720
2020-03-09 15:13:02 +01:00
Franco Fichtner
2c25b1cffa
pkg: accept build-time flavour selection
2020-03-06 12:37:27 +01:00
Ad Schellevis
9562ff80f0
firewall: rule lookup redirector, don't escape internal urls provided by $rule->getRef(), to make suer we can properly support slashes etc in urls. The risk of this change should be rather low, since you need local access to feed '#ref' (which is the origin of getRef())
...
need to be able to redirect to /ui/firewall/filter/ for https://github.com/opnsense/plugins/issues/1720
2020-03-05 17:10:20 +01:00
Ad Schellevis
9f07049498
filter: flush priority sections to rules.debug, eases traceability
...
ref: https://github.com/opnsense/plugins/issues/1720
# Please enter the commit message for your changes. Lines starting
2020-03-05 14:47:24 +01:00
Franco Fichtner
a3cf8cf81b
mvc: PSR12 is really picky :)
2020-03-05 07:57:47 +01:00
Ad Schellevis
550bcea155
MVC: In order to extend the separate nodes of an arraytype field, we should be able to control the container creation. This commit adds newContainerField() which is responsible for spawning new container fields and attaching them to the current model.
...
Internally the object model looks like this:
ArrayField - [
ContainerField - [
TextField
EmailField
....
]
ContainerField - [
{same types as first row}
]
]
uuid's are attached to the ContainerField types by the ArrayField (or on load by BaseModel)
ref: https://github.com/opnsense/plugins/issues/1720
2020-03-04 15:09:37 +01:00
Ad Schellevis
a8b2fb5e92
MVC: support inheritance of the ArrayField type, institutionalise the type by adding a method isArrayType() to the basefield, which returns true if the type itself is a ArrayField or one of its descendants.
...
Conceptually there are two types containers in our model, the standard one (ContainerField), which only acts as a placeholder without logic and the ArrayField type, which understands repetitive structures and comes with its own uuid reference per item and methods supporting addition and removal of entries.
With the application specific field types it can be practical if you could extend this container type as well, so you can add additional methods on a more logical spot in the code tree.
ref https://github.com/opnsense/plugins/issues/1720
2020-03-04 13:48:18 +01:00
Ad Schellevis
41cf191205
pam/squid: work around to skip passing additional auth properties. https://forum.opnsense.org/index.php?topic=16126
2020-03-04 11:44:47 +01:00
Ad Schellevis
665e3db1f6
packet capture, validate interface input. closes https://github.com/opnsense/core/issues/3964
2020-03-04 11:30:36 +01:00
Franco Fichtner
a4a26fa898
src: style sweep
2020-03-03 14:25:20 +01:00
Ad Schellevis
8496073046
MVC: BaseField, also store "" as initial state to prevent empty fields as being marked as changed all the time.
...
Side affect of this change is that testDependConstraintNok seemed to be missing a back reference, which is being added in this commit as well (TestModel.xml).
Catched while working on https://github.com/opnsense/plugins/issues/1720
2020-03-03 14:12:08 +01:00
Franco Fichtner
67bbb8e342
dhcp: parenthesis are bad style, either important without or discard
2020-03-03 12:39:05 +01:00
Franco Fichtner
582adc9ef2
dnsmasq/unbound: return strings to their original form
...
This is too much valid translation bounce noise and will not help.
This is better explained in detail in a documentation page if
users really read it, that is.
2020-03-03 12:32:40 +01:00
Ad Schellevis
6d2d6a7ad7
firewall: carp, miss a bit of visibility on internal rules, refer to setting page for allow rule and make sure redirector understands links without page reference
2020-03-02 21:31:37 +01:00
Ad Schellevis
9aac0415ef
fix plist
2020-03-02 20:13:04 +01:00
Ad Schellevis
5ed7f4a54e
MVC: add NetworkAliasField type for https://github.com/opnsense/plugins/issues/1720
...
Validate if input is either a valid network, host or alias including specialnetworks (any, self, or attached interface net/address)
2020-03-02 20:55:46 +01:00
Ad Schellevis
6da8a2f558
MVC: BaseListField + PortField, use getValidationMessage() to bootstrap defaults. found while working on https://github.com/opnsense/plugins/issues/1720 , needed for the new NetworkAliasField type
2020-03-02 18:37:34 +01:00
Ad Schellevis
7bd1dab314
MVC: fix typo in unit test naming. ( https://github.com/opnsense/plugins/issues/1720 )
2020-03-02 17:52:13 +01:00
Franco Fichtner
c6314e20d1
pkg: fix plist
2020-03-02 14:19:49 +01:00
Ad Schellevis
1bdb252f96
MVC: ProtocolField missing gettext ( https://github.com/opnsense/plugins/issues/1720 )
2020-03-02 13:55:51 +01:00
Ad Schellevis
6d5301a7b3
MVC: CountryField, static options should take settings into account.
2020-03-02 12:09:16 +01:00
Ad Schellevis
e057fce06d
MVC: add unittest for ProtocolField ( https://github.com/opnsense/plugins/issues/1720 )
2020-03-02 10:42:39 +01:00
Ad Schellevis
dddbe2f1ec
MVC: protocol field, init bug ( https://github.com/opnsense/plugins/issues/1720 )
2020-03-02 10:36:16 +01:00
Franco Fichtner
43f320342a
pkg: fix plist
2020-03-02 09:38:09 +01:00
Ad Schellevis
c104582ed7
logging: leap-year issue. without a year, strptime() doesn't seem to assume it's this year.
2020-02-29 17:23:10 +01:00
Ad Schellevis
212e9527c3
MVC: add ProtocolField type, needed for https://github.com/opnsense/plugins/issues/1720
2020-02-28 16:49:46 +01:00
Ad Schellevis
0a112eaec4
MVC: simplify IDS actions, for https://github.com/opnsense/core/issues/3951
2020-02-27 12:05:39 +01:00
Ad Schellevis
0ae805a54c
MVC: SimpleActionButton trim result before comparison
2020-02-27 11:45:21 +01:00
Ad Schellevis
1d9307a019
fix previous
2020-02-27 11:29:34 +01:00
Ad Schellevis
cf6c04b5c4
MVC: simplify alias reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 11:28:40 +01:00
Ad Schellevis
c64b8147d0
MVC: add onPreAction to SimpleActionButton, to support two step actions (save form data --> apply)
2020-02-27 11:19:58 +01:00
Ad Schellevis
300c41818f
MVC: simplify proxy actions, for https://github.com/opnsense/core/issues/3951
2020-02-27 11:07:33 +01:00
Ad Schellevis
1ae92924c9
MVC: simplify traffic shaper reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:42:18 +01:00
Ad Schellevis
9199995cd3
MVC: simplify cron reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:36:28 +01:00
Ad Schellevis
481018404f
MVC: simplify captive portal reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:33:39 +01:00
Ad Schellevis
385c55f4e5
MVC: simplify loopback reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:26:47 +01:00
Ad Schellevis
ca9000455d
MVC: simplify vlxan reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:24:30 +01:00
Ad Schellevis
a12cdd5534
MVC: simplify static routing, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:20:07 +01:00
Ad Schellevis
40e2d25ddc
MVC: simplify Monit reload, for https://github.com/opnsense/core/issues/3951
2020-02-27 10:09:05 +01:00
Ad Schellevis
4e44c126ea
fix previous
2020-02-27 10:07:46 +01:00
Ad Schellevis
d189f62b95
MVC: SimpleActionButton, add onAction option to allow additional actions. compare status case-insensitive.
2020-02-26 23:21:17 +01:00
Ad Schellevis
1a693a9ce7
Monit: simplify reload action, ditch result field to align with other controllers (which use status), eases https://github.com/opnsense/core/issues/3951
2020-02-26 23:18:37 +01:00
Ad Schellevis
dd7905a934
alias: geoip, don't try to download when not being served from http[s]
2020-02-26 10:11:19 +01:00
Ad Schellevis
ea29e4b967
Alias: geoip, catch requests errors and log+return. fixes ce2b145185
2020-02-26 10:06:24 +01:00
Ad Schellevis
491c6c1f0a
MVC: simplify syslog reload, for https://github.com/opnsense/core/issues/3951
2020-02-25 16:51:33 +01:00
Ad Schellevis
f0163e9d57
MVC: add jQuery plugin to support a simple service reload/action button.
...
Example usage:
<button class="btn btn-primary" id="reconfigureAct"
data-endpoint='/api/syslog/service/reconfigure'
data-label="{{ lang._('Apply') }}"
data-service-widget="syslog"
data-error-title="{{ lang._('Error reconfiguring syslog') }}"
type="button"
></button>
and the JS init:
$("#reconfigureAct").SimpleActionButton();
closes https://github.com/opnsense/core/pull/3788
2020-02-25 16:42:19 +01:00
Ad Schellevis
6c3726d719
translations: hook javascript texts as suggested by @kekek2, closes https://github.com/opnsense/core/pull/3697
2020-02-25 15:42:37 +01:00
Ad Schellevis
9b72b85e41
Auth/ldap: group CN should be matched case insensitive. closes https://github.com/opnsense/core/pull/3870
...
The most common use-case for group matching is probably Active Directory, which is case-insensitive. Some other implementation maybe case-sensitive, but since the chances of matching an unintented group (Admin vs admin) or rather low, we could consider this a low impact change.
2020-02-25 14:18:01 +01:00
Ad Schellevis
ce2b145185
Firewall/alias/geoip. make sure to trigger a download if no stats are found. Which should fix startup issues when aliases don't require a change and a new valid subscription is entered.
2020-02-25 10:38:05 +01:00
Ad Schellevis
f3adf835ef
Unbound/dhcpd, missed a line in 96396f782e for https://github.com/opnsense/core/issues/3730
2020-02-24 20:48:00 +01:00