5272 Commits

Author SHA1 Message Date
Ad Schellevis
263c2f4a5a Merge pull request #1125 from fabiomello/master
Filter URL Only at HTTPS Filter
2016-08-19 10:34:29 +02:00
Franco Fichtner
686f6a9226 system: tweak previous
Prodded by: @fabianfrz
2016-08-19 10:30:31 +02:00
Franco Fichtner
96ffce7cff system: default all admins to shell access; closes #1144 2016-08-19 08:27:01 +02:00
Franco Fichtner
273692e574 system: add sudo configure option to permit admins access; closes #990
This is especially useful for "sudo su" in manually created admins
to gain access to the console menu without compromising the root
password.
2016-08-19 08:07:59 +02:00
Franco Fichtner
5f50315c00 firewall: fix typo 2016-08-18 20:15:18 +02:00
Franco Fichtner
9f315cec93 rc: update glue for upcoming major updates 2016-08-18 09:00:06 +02:00
Franco Fichtner
a52ec237b1 system: fixup scattered gettext() usage in the user manager 2016-08-17 19:23:34 +02:00
Franco Fichtner
0c1e5723b5 mvc: translate page title
Needs more fixing/unification with the proper way of doing it,
but for now let these strings trickle through the translation
machinery for maximum effect.
2016-08-17 09:04:02 +02:00
Franco Fichtner
706d2804e1 rc: scrub extensions.ini writing following a FreeBSD ports change
We don't have to do anything here anymore.  Since we started using
pkg(8) the extensions.ini was always consistent, but we needed to
make sure that the order is correct.  Some more cleverness was added
to no prevent other PHP modules from simply "plugging in", but since
they are not in one extensions.ini anymore it won't matter.

Expecting some splatter during upgrade, but hopefully also no more
php-suhosin clashes with php56-session not loaded.  :)
2016-08-17 07:51:24 +02:00
Ad Schellevis
a7e3a8bf5a (services_dnsmasq.php) colspan not compatible with mobile/opnsense_standard_table_form, closes https://github.com/opnsense/core/issues/1142 2016-08-16 21:42:09 +02:00
Franco Fichtner
c0b10d0691 src: more translation tweaks
Suggested by: @Antonio-Prado
2016-08-16 21:38:55 +02:00
Franco Fichtner
9b65221677 proxy: adapt "kB" style like previous 2016-08-16 21:28:34 +02:00
Franco Fichtner
a0c0a25434 system: small translation tweaks 2016-08-16 21:22:59 +02:00
Franco Fichtner
3442cf091d vpn: zap dot on previous
Suggested by: @DokuKaefer
2016-08-16 08:02:46 +02:00
Franco Fichtner
fb3d5e0bba mvc: apply new style rule 2016-08-16 04:40:56 +02:00
Franco Fichtner
944de05c91 vpn: fix a typo
Suggested by: @Antonio-Prado
2016-08-16 06:31:49 +02:00
Ad Schellevis
7412df81ba (proxy) add constraint on filename for remoteacl, closes https://github.com/opnsense/core/issues/700 2016-08-15 19:44:25 +02:00
Franco Fichtner
2c8e35ccd4 mvc: stype/whitespace sweep 2016-08-15 19:07:01 +02:00
Franco Fichtner
556e6a4307 make: add `test' target wrapper
Whitelisting in Suhosin is needed to make this work, but
unfortunately this will disable whitelisting for all of
phar.  A pretty debatable design choice, but for now we
keep this on -devel until we know what to do...
2016-08-15 18:59:01 +02:00
Ad Schellevis
7960bace55 whitespace 2016-08-15 18:27:30 +02:00
Ad Schellevis
d656cbf7db (mvc, constraints) rename message to ValidationMessage 2016-08-15 17:48:05 +02:00
Ad Schellevis
5361a64bd1 (mvc, add constraint pattern) for https://github.com/opnsense/core/issues/272
Constraints hook into the default validations, new constraints should derive from BaseConstraint.
This commit contains the code needed to add constraints to our model and a unittest for the UniqueConstraint option.

Add the following to a model field, to force uniqueness for a combination of keys:

<Constraints>
  <check001>                                                 <!--validation name, unique within this field-->
    <message>number should be unique</message>               <!--the message to output on validation failure -->
    <type>OPNsense\Base\Constraints\UniqueConstraint</type>  <!--the class to construct, derived from OPNsense\Base\Constraints\BaseConstraint -->
    <addFields>                                              <!--optional additional fields for the equation, defined in UniqueConstraint -->
       <field1>optfield</field1>
    </addFields>
  </check001>
</Constraints>
2016-08-15 17:37:50 +02:00
Franco Fichtner
b3f3a68b0d dashboard: colour changed, but text did not 2016-08-15 10:42:26 +02:00
Franco Fichtner
123ed735fc interfaces: no reason to store packet capture on root partition
If there is not enough space in /tmp, it's really nothing we
can do about here.  This is not an essential file.
2016-08-15 10:26:47 +02:00
Ad Schellevis
608ed9c67f fix previous 2016-08-15 09:08:18 +02:00
Ad Schellevis
22701ee038 (mvc) propagate ajax errors 2016-08-15 09:02:21 +02:00
Franco Fichtner
d988799a81 src: translations tweaks
Taking the liberty to use this as an opportunity to kill the
usage of "e-mail".

Suggested by: @Antonio-Prado
2016-08-15 07:31:18 +02:00
Ad Schellevis
c5e87ca1da (mvc, api) error handling, set http status code 2016-08-14 20:14:29 +02:00
Per von Zweigbergk
6839fe81ac (mvc, api) Removed useless escaping 2016-08-14 13:31:37 +00:00
Per von Zweigbergk
7863c124c0 (mvc, api) improve error handling for api calls
Example before: {"errorMessage":"Undefined offset: 0 [8]"}
Example after: {"errorMessage":"Error at \/usr\/local\/etc\/inc\/util.inc:952 - Undefined offset: 0 (errno=8)"}
2016-08-14 13:08:51 +00:00
Ad Schellevis
9ed6406bdc (mvc, api) add error handling for api calls, https://github.com/opnsense/core/issues/1136 2016-08-14 14:23:43 +02:00
Franco Fichtner
720acc9e1d util: make dmesg probing optional #1135
While there, turn the probing upside down for general sanity:

o Only pull dmesg output once
o Pattern-match one pattern only
o Anchor the match to the line start
2016-08-13 20:53:36 +02:00
Per von Zweigbergk
c9e04ae0f7 (get_interface_list) Properly handle an interface not appearing in dmesg 2016-08-13 16:49:31 +00:00
Franco Fichtner
4870ff1061 ssh: deprecate DSA keys as per OpenSSH recommendation
Also see: http://www.openssh.com/txt/release-7.0
2016-08-13 15:39:12 +02:00
Franco Fichtner
081415d4fa rc: remove IP checks for PPTP and L2TP servers
The console would refuse to assign an IP that was used by the
PPTP or L2TP server (surprisingly not PPPoE).  This rule changed
during the MPD4 -> MDP5 migration, so remove that code.  Also,
the subnet check was never executed, good time to remove it as
well.
2016-08-13 15:18:06 +02:00
Franco Fichtner
1b21ad916c www: fix previous
Spotted by: @fabianfrz
2016-08-13 13:35:25 +02:00
Franco Fichtner
c1141f4dd6 www: fix two translation issues
Reported by: @Antonio-Prado
2016-08-13 12:57:09 +02:00
Franco Fichtner
4425c28ea0 src: extend whitespace sweep to root dir files 2016-08-13 12:50:58 +02:00
Ad Schellevis
d137b214ad output style for unversioned upgrade in run_migrations.php 2016-08-12 19:08:45 +02:00
Ad Schellevis
e527d539f6 (model, migrations) extend output 2016-08-12 15:35:53 +02:00
Ad Schellevis
e05b89b44c osx doesn't mind case.... typo 2016-08-12 15:28:21 +02:00
Ad Schellevis
a015dd4a7d change mode for run_migrations.php 2016-08-12 15:23:22 +02:00
Ad Schellevis
c16fac21c9 (proxy) set version 2016-08-12 15:22:05 +02:00
Ad Schellevis
73af4392f5 add run_migrations.php 2016-08-12 15:20:41 +02:00
Ad Schellevis
137cac91d5 (model, migrations) add default migration strategy 2016-08-12 15:17:29 +02:00
Ad Schellevis
6a7262c509 style fix 2016-08-12 15:16:34 +02:00
Ad Schellevis
1492ddfd39 (mvc) more work on migrations, fix autoloader, serialize to config when all steps for this model are finished 2016-08-12 14:35:17 +02:00
Franco Fichtner
f55a12b466 vpn: correct capitalisation for Common Name 2016-08-12 14:01:35 +02:00
Ad Schellevis
a38eb7aa90 (mvc) change case for Migrations directory 2016-08-12 12:02:14 +02:00
Ad Schellevis
89fa64dbcb (mvc) BaseModel add getVersion() to retrieve the running config version, commit changes to in memory config after every migration step.
Errors will be send to syslog, current policy is to always upgrade and ignore migration errors.
(there's not really a way back, other then undo pkg install and revert the full config)
2016-08-12 11:27:49 +02:00