2902 Commits

Author SHA1 Message Date
Ad Schellevis
d5cdddedea backup, move google drive backup and settings into backup framework, add basic field types in diag_backup.php to render backup forms and remove crontab dependency since remote_backup doesn't really do anything when none of the providers are enabled. for https://github.com/opnsense/core/pull/2251 2018-03-23 19:25:05 +01:00
Franco Fichtner
63cfe0a96c services: monit dependency oversight, convert service control 2018-03-21 21:00:20 +00:00
Franco Fichtner
92d809cfe8 src: whitespace and style sweep 2018-03-21 05:51:47 +01:00
Ad Schellevis
2eb5ac913a move google drive backup to new framework for https://github.com/opnsense/core/pull/2251
Still some work todo, integrate configuration into new interface and iterate through available options in remote_backup.php.
The current state is functionally unchanged, only some minor cleanups in the previous backup code.
2018-03-20 20:58:02 +01:00
Ad Schellevis
71485968d2 Cron, missed default setting to origin "cron" and some __String() to (string) replacements 2018-03-20 18:59:42 +01:00
Ad Schellevis
97156b5596 Cron, move to ApiMutableModelControllerBase to replace standard plumbing and add missing gettext() in custom validations 2018-03-20 18:53:33 +01:00
Ad Schellevis
335846e978 backup framework / encryption, replace -k for -pass as suggested by @fabianfr 2018-03-20 18:49:25 +01:00
Ad Schellevis
c12dc1e07c cron, fix menu registration, shouldn't display "workaround" in quick search 2018-03-20 18:00:48 +01:00
Ad Schellevis
75cb5279a0 missed a spot in previous 2018-03-20 17:03:38 +01:00
Ad Schellevis
e338b85f03 routes, add some missing phpdoc strings 2018-03-20 17:02:42 +01:00
Ad Schellevis
c2ad5547a7 routes/mvc, use ApiMutableModelControllerBase and add missing phpdocs 2018-03-20 16:57:04 +01:00
Ad Schellevis
92a8e402b1 ditch non functional QinQ interfaces, closes https://github.com/opnsense/core/issues/2274 2018-03-20 14:41:52 +01:00
Franco Fichtner
a458aec929 plugins: remove spurious rc.plugins_configure
Prodded by: @adschellevis
2018-03-20 11:05:58 +01:00
Ad Schellevis
aedfc6b887 work in progress pluggable backup providers for https://github.com/opnsense/core/pull/2251
Define a basic interface for backup providers and try to move our GoogleDrive backup in the process.
The basic idea is there, now we need to attach this to the current user interface (don't want to rework the legacy backup/restore page now) and move the last pieces for the google backup feature over to this.
Next we should be able to iterate over our providers and request a backup for the ones that are activated.

The responisibilty for what to backup lies within the provider at the moment, to keep things compatible and simple for the caller.
2018-03-19 21:13:17 +01:00
Ad Schellevis
ad29ec2fe6 core/acl, remove check if acl entry starts with page-, seems confusing to register an acl which won't be parsed.... 2018-03-19 18:31:44 +01:00
Michael
2838b562ad
respect mask in queue config 2018-03-19 12:35:30 +01:00
Franco Fichtner
d7720dcf3e intrusion detection: provide custom.yaml stub #2268 2018-03-18 21:27:31 +00:00
Franco Fichtner
d59fe96b10 mvc: move it back to where it was initially... 2018-03-18 10:29:36 +01:00
Franco Fichtner
b762fe38b2 mvc: try help without <small/> to align with static pages 2018-03-18 10:24:35 +01:00
Franco Fichtner
2caa7fae6a www: missing bits for previous; closes #2175 2018-03-17 16:19:14 +01:00
NOYB
9d96bdcbc7 Help For - Data For Attribute
Use original element (<div>/<small>) with "data-for" attribute.

The old jquery "for" attribute selectors can be removed once conversion to "data-for" attribute is complete (including plugins).

The old jquery selectors to remove once conversion is complete.
  opnsense_ui.js & head.inc
  $("*[for='" + $(this).attr('id') + "']")....
  $('[for*="help_for"]')....
2018-03-17 16:12:55 +01:00
Franco Fichtner
86aa45633a voucher: tweak simple character set; closes #2257 2018-03-12 18:47:27 +01:00
Ad Schellevis
7401b27bad mvc / Monit, ditch work-around, closes https://github.com/opnsense/core/issues/2255 2018-03-12 18:23:51 +01:00
Ad Schellevis
117eb47666 MVC, keep track of model that created a field so our model relationfield can reuse the same object for choosing it's options, for https://github.com/opnsense/core/issues/2255 2018-03-12 18:22:21 +01:00
Franco Fichtner
d823cc7193 firewall: switch back to old NAT auto-outbound behaviour
Use the first address only, ignoring all VIPs.

Discussed with: @adschellevis

PR: https://forum.opnsense.org/index.php?topic=7438.0
2018-03-12 14:36:11 +01:00
Ad Schellevis
dc74006c9a implement password policies for local accounts. for https://github.com/opnsense/core/issues/2252
This change consists of two components:

1) enforcing the user to change his or her password every x days, when pwd_changed_at is not set or longer ago then specified only access to the password page is prohibited
2) enforce minimal length or complexity settings depending on selected choices
2018-03-11 18:24:23 +01:00
Franco Fichtner
1a22b8822a service: almost entirely migrate monit model 1.0.0 et al. 2018-03-11 11:08:14 +00:00
Franco Fichtner
79500101c6 services: import monit service
Some things to work on:
* post-install should be a migration
* move to system?
* remove old notifications
2018-03-11 11:07:51 +00:00
Franco Fichtner
7cc7a26e60 mvc: small cleanups 2018-03-11 11:07:21 +00:00
Franco Fichtner
dd71f72b45 src: style fix 2018-03-11 00:13:02 +01:00
Ad Schellevis
9eeb057d30 configd deserves it's own space for logging, closes https://github.com/opnsense/core/issues/2067 2018-03-10 16:03:48 +01:00
Franco Fichtner
003a1142b9 system: another tweak 2018-03-10 11:36:30 +01:00
Franco Fichtner
69befc0d05 system: change menu item name for previous 2018-03-10 11:34:21 +01:00
Ad Schellevis
11363e4799 webui, add option to enable access log and fix lighttpd.log in the process. closes https://github.com/opnsense/core/issues/2248 2018-03-09 21:39:45 +01:00
Franco Fichtner
ac0a632812 src: style sweep 2018-03-09 11:58:19 +00:00
Ad Schellevis
ec819ca59c mvc, move view_fetch_themed_filename() to index, so a stub can overwrite it's behaviour (when developing locally) 2018-03-06 21:16:02 +01:00
Ad Schellevis
67e95c4f52 MVC/Theme, force theme setting if base theme directory (/usr/local/opnsense/www/themes) doesn't exist, which might be the case for local test/development (we can't know for sure the predefined theme doesn't exist, but if we can't probe if we might as well trust the settings) 2018-03-06 18:29:16 +01:00
Ad Schellevis
c58c2fdc8d MVC/Menu, oops, left some debugging output 2018-03-06 16:39:52 +01:00
Ad Schellevis
d1de8da1a9 MVC, add support for multiple model locations to collect menu items 2018-03-06 14:36:52 +01:00
Ad Schellevis
966106a140 mvc, missed a spot 2018-03-06 14:08:39 +01:00
Ad Schellevis
9cbb08d765 mvc, oops, object of type Phalcon\Config can't be converted to string... so we'll have to check if the routing is an object or array to support both configurations 2018-03-06 14:04:20 +01:00
Ad Schellevis
582b201100 IDS, only resize alert dialod using css class "suricata-alert" 2018-03-06 11:00:10 +01:00
Ad Schellevis
b2aa021eb6 JS, add cssClass to stdDialogInform so we can better target our new forms 2018-03-06 10:59:33 +01:00
Ad Schellevis
cc6c5ded1f mvc, support multiple controller directories in routing 2018-03-05 22:12:55 +01:00
Ad Schellevis
3879f1b5c0 MVC/404 error page, go back to previous page from history instead of index. 2018-03-05 21:28:48 +01:00
Ad Schellevis
a6ef326bc2 MVC, use relative path for firmware-product so we can move around our core package without breakage (needed for https://github.com/opnsense/ui_devtools) 2018-03-05 19:18:38 +01:00
Ad Schellevis
ae3b64915e MVC, rename 404 page to not_found, make sure authentication failure still redirects to the login page 2018-03-05 10:18:20 +01:00
Franco Fichtner
f5fa5adca5 services: revert previous 2018-03-05 07:13:53 +01:00
Ad Schellevis
f83ad1c458 MVC, serve 404 when page ui page not found 2018-03-04 19:36:00 +01:00
Franco Fichtner
0ec6617db8 src: fix annotation 2018-03-04 19:30:25 +01:00